添加一个@Component可以解决此问题,只有这个组件是容器中的组件,才能使用容器提供的@ConfigurationProperties功能。

posted on 2022-09-03 10:03  bug鸭~  阅读(22)  评论(0编辑  收藏  举报