解决方案:
在pom.xml文件中引入依赖并刷新
org.springframework.boot spring-boot-configuration-processor true
yaml 和 properties 的功能对比:
JSR303数据校验:在实体类上加上==@Validated==
属性可以加以下注解:
yaml可以放置的四个地方:优先级:
多环境配置:properties:
yaml:
占位符
解决方案:
在pom.xml文件中引入依赖并刷新
org.springframework.boot spring-boot-configuration-processor true
yaml 和 properties 的功能对比:
JSR303数据校验:在实体类上加上==@Validated==
属性可以加以下注解:
yaml可以放置的四个地方:优先级:
多环境配置:properties:
yaml:
占位符