Not registered via @EnableConfigurationProperties or marked as Spring component
解决办法
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
再添加@Component