关于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
请问该如何修改?