admin管理员组文章数量:1635837
FastDFS报错
Destination image dimensions must not be less than 0 pixels
FastDFS整合Spring-bot后,实验上传文件时报错,百度以后没有相关错误,自己从头写了一遍成功后和原文件比较.
发现是配置文件中的缩进出现问题(捂脸)
#异常内容
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Destination image dimensions must not be less than 0 pixels.] with root cause
java.lang.IllegalArgumentException: Destination image dimensions must not be less than 0 pixels.
at net.coobird.thumbnailator.Thumbnails.validateDimensions(Unknown Source) ~[thumbnailator-0.4.8.jar:0.4.8]
at net.coobird.thumbnailator.Thumbnails.access$1700(Unknown Source) ~[thumbnailator-0.4.8.jar:0.4.8]
at net.coobird.thumbnailator.Thumbnails$Builder.size(Unknown Source) ~[thumbnailator-0.4.8.jar:0.4.8]
然后是配置文件
// An highlighted block
fdfs:
so-timeout: 1500
connect-timeout: 600
pool:
jmx-enabled: false
thumb-image:
width: 100
height: 100
tracker-list: 10.30.161.57:22122
配置文件中的缩率图一栏缩进没有调整好,导致这个莫名其妙的错误.(看报错是真的不知道他错在哪里.)
本文标签: destinationFastDFSImagePixelsDimensions
版权声明:本文标题:FastDFS Destination image dimensions must not be less than 0 pixels 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729215432a1190374.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论