Configuration property name 'fdfs.thumbImage' is not valid

SpringBoot 2.0 以后使用FastDFS会这个错误

Invalid characters: 'I'
Bean: defaultThumbImageConfig
Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter

Action:

Modify 'fdfs.thumbImage' so that it conforms to the canonical names requirements.

这个应该是版本不兼容的问题,需要修改配置文件

首先去github上看现在的版本是多少,我看的时候是1.26.2

我的项目是gradle编译的,修改gradle文件

compile('com.github.tobato:fastdfs-client:1.26.2')

···

旧的

fdfs:
soTimeout: 1501
connectTimeout: 601
thumbImage: #缩略图生成参数
width: 150
height: 150
trackerList: #TrackerList参数,支持多个
- 192.168.0.1:22122
pool:
maxTotal: 500
maxWaitMillis: 1000

新的

fdfs:
so-timeout: 1501
connect-timeout: 601
thumb-image: #缩略图生成参数
width: 150
height: 150
tracker-list: #TrackerList参数,支持多个
- 192.168.0.1:22122
- 192.168.0.1:22122
····

posted @ 2018-06-12 17:49  西山农夫  阅读(1020)  评论(0)    收藏  举报