zoukankan      html  css  js  c++  java
  • 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:             #缩略图生成参数
             150
            height: 150
        trackerList:            #TrackerList参数,支持多个
        - 192.168.0.1:22122
        pool:
            maxTotal: 500
            maxWaitMillis: 1000
    
     #新的
    fdfs:
        so-timeout: 1501
        connect-timeout: 601
        thumb-image:             #缩略图生成参数
             150
            height: 150
        tracker-list:            #TrackerList参数,支持多个
            - 192.168.0.1:22122
            - 192.168.0.1:22122
    

    ····

  • 相关阅读:
    操作系统复习
    Google hack语法
    c++的set重载运算符
    华为笔试题
    Flume+Kafka整合
    kafka相关知识点总结
    kafka中生产者和消费者API
    Kafka集群环境搭建
    Storm消息容错机制(ack-fail机制)
    Storm通信机制(了解)
  • 原文地址:https://www.cnblogs.com/athens/p/9174335.html
Copyright © 2011-2022 走看看