FastDFS Destination image dimensions must not be less than 0 pixels
程序员文章站
2024-02-08 17:38:52
...
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
配置文件中的缩率图一栏缩进没有调整好,导致这个莫名其妙的错误.(看报错是真的不知道他错在哪里.)