Configuration property name ‘fdfs.thumbImage‘ is not valid

港控/mmm° 2022-12-27 11:10 254阅读 0赞

参考fastDFS官方文档: https://github.com/tobato/FastDFS_Client

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

  1. Invalid characters: 'I'
  2. Bean: defaultThumbImageConfig
  3. Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter
  4. Action:
  5. Modify 'fdfs.thumbImage' so that it conforms to the canonical names requirements.

分析: 版本不兼容的问题,需要修改配置文件

现在官方的版本为:

  1. 1.27.2

对应的配置项应改为:

  1. #旧的
  2. fdfs:
  3. soTimeout: 1501
  4. connectTimeout: 601
  5. thumbImage: #缩略图生成参数
  6. width: 150
  7. height: 150
  8. trackerList: #TrackerList参数,支持多个
  9. - 192.168.0.1:22122
  10. pool:
  11. maxTotal: 500
  12. maxWaitMillis: 1000
  13. #新的
  14. fdfs:
  15. so-timeout: 1501
  16. connect-timeout: 601
  17. thumb-image: #缩略图生成参数
  18. width: 150
  19. height: 150
  20. tracker-list: #TrackerList参数,支持多个
  21. - 192.168.0.1:22122
  22. - 192.168.0.1:22122

发表评论

表情:
评论列表 (有 0 条评论,254人围观)

还没有评论,来说两句吧...

相关阅读

    相关 name 'null' is not defined

    "name null is not defined" 意思是在程序中使用了未定义的变量 "name null"。这通常是因为在程序中拼写错误或者忘记声明变量导致的。 要解决这