今天写一个配置信息直接上图
server: port: 8080 spring: redis: host: 192.168.114.135 port: 6379 password: wen266281 database: 0 lettuce: pool: # 连接池最大连接数(使用负值表示没有限制): 8 max-active: 8 # 连接池最大阻塞等待时间(使用负值表示没有限制)默认为-1 max-wait: 100ms # 连接池中的最大空闲连接 默认为8 max-idle: 8 # 连接池中的最小空闲连接 默认为0 min-idle: 0 # Redis连接超时时间(毫秒) application: name: regeeee datasource: druid: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/reggie?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true username: root password: wen266281 mybatis-plus: configuration: #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射 map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: db-config: id-type: ASSIGN_ID reggie: abs: D:\\8007\\z
这里redis配置相关的代码是复制粘贴上去的 然后我就发现下面几行代码爆黄了
这里就是一个规则:yml文件spring: deta:.....这就是路径 就是说有父子关系的 spring :必须写再deta前面 但是这里同为spring下面的路径怎么办
和同级别对其 不然就会爆黄 这里等级森严得很