解决方法:
添加依赖到pom.xml
使用@ConfigurationProperties注解注入属性值,添加依赖spring-boot-configuration-processor
org.springframework.boot spring-boot-configuration-processor true

解决方法:
添加依赖到pom.xml
使用@ConfigurationProperties注解注入属性值,添加依赖spring-boot-configuration-processor
org.springframework.boot spring-boot-configuration-processor true