Waitme9 2022-07-09 16:00 采纳率: 79.4%
浏览 42
已结题

spring项目中控制台提醒更新配置,该如何解决或更新?

关于spring项目中控制多台报更新配置,并指出有效值该如何修改
首先,下面是控制台报错:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-07-09 15:53:38.899 ERROR 15320 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'spring.jackson.parser' to java.util.Map<com.fasterxml.jackson.core.JsonParser$Feature, java.lang.Boolean>:

    Reason: failed to convert java.lang.String to com.fasterxml.jackson.core.JsonParser$Feature

Action:

Update your application's configuration. The following values are valid:

    ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER
    ALLOW_COMMENTS
    ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS
    ALLOW_MISSING_VALUES
    ALLOW_NON_NUMERIC_NUMBERS
    ALLOW_NUMERIC_LEADING_ZEROS
    ALLOW_SINGLE_QUOTES
    ALLOW_TRAILING_COMMA
    ALLOW_UNQUOTED_CONTROL_CHARS
    ALLOW_UNQUOTED_FIELD_NAMES
    ALLOW_YAML_COMMENTS
    AUTO_CLOSE_SOURCE
    IGNORE_UNDEFINED
    INCLUDE_SOURCE_IN_LOCATION
    STRICT_DUPLICATE_DETECTION

与目标VM断开连接, 地址为: ''127.0.0.1:6787',传输: '套接字'', 传输: '{1}'


下面是我的配置问价:

server:
  port: 6666
  #underow配置
  undertow:
    #http post请求限制 0代表不受限
    max-http-post-size: 0
    threads:
      #设置非阻塞线程数
      io: 4
      #设置阻塞线程数
      worker: 20
    #内存管理
    buffer-size: 1024
    # 是否分配的直接内存(NIO直接分配的堆外内存)
    direct-buffers: true
    #日志输出
    accesslog:
      dir: d://
      enabled: true
      pattern: common
      prefix: accesslog
      suffix: .log

spring:
  # 数据源配置
  datasource:
    username: root
    password: 147258
    url: jdbc:mysql://127.0.0.1:3306/shilinbullfight?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
#mysql8版本以上驱动包指定新的驱动类
    driver-class-name: com.mysql.cj.jdbc.Driver
#   数据源其他配置, 在 DruidConfig配置类中手动绑定
    initialSize: 8
    minIdle: 5
    maxActive: 20
    maxWait: 60000
    timeBetweenEvictionRunsMillis: 60000
    minEvictableIdleTimeMillis: 300000
    validationQuery: SELECT 1 FROM DUAL
    #德鲁伊连接池
    #初始化时建立物理连接的个数
    druid:
      initial-size: 5
      max-active: 10
      max-wait: 2000
  #JACKSON
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
    property-naming-strategy: SNAKE_CASE
    locale: zh
    default-property-inclusion: NON_NULL
    serialization:
      WRITE_DATES_AS_TIMESTAMPS: true
      FAIL_ON_EMPTY_BEANS: true
    deserialization:
      FAIL_ON_UNKNOWN_PROPERTIES: false
    mapper.USE_GETTERS_AS_SETTERS: true
    parser:
      LLOW_SINGLE_QUOTES: true
  #redis配置
  redis:
    host: 127.0.0.1
    port: 6379
    password: 'foobared'
    #最大连接池数
    pool:
      max-active: 8
      #最大阻塞等待时间负值无限制
      max-wait: 1
      #最大空闲连接
      max-idle: 8
      #最小空闲连接
      min-idle: 0
      #连接超时时间
    #连接超时时间
    timeout: 30000
    # REDIS (RedisProperties)
    # Redis数据库索引(默认为0)
    database: 0
  #h缓冲区
  codec:
    max-in-memory-size: 2MB

#配置Mybatis
mybatis-plus:
#  config-location: classpath:mybatis/mybatis-config.xml
  type-aliases-package: com.sldn.entity
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  #扫描mapper xml层
  mapper-locations: classpath:com/sldn/mapper/xml/*.xml


# 日志级别 ,会打印sql语句
logging:
level:
com.mengxuegu.member.mapper: debug

请问该如何修改?

  • 写回答

1条回答 默认 最新

  • 皮蛋不吃粥 2022-07-11 13:22
    关注

    单词少打了一个A

    img

    img

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 7月20日
  • 已采纳回答 7月12日
  • 创建了问题 7月9日

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法