利用@ConfigurationProperties(prefix = "")来绑定属性时报错: not registered via @EnableConfigurationProperties or marked as Spring component POM依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactI…
idea报错如下: Not registered via @EnableConfigurationProperties or marked as Spring component less... (Ctrl+F1)Inspection info: Verifies @ConfigurationProperties setup. New in 2018.3 解决方法:加上@Component注解…