springboot @EnableConfigurationProperties({Class})注解

两个作用:1.让传进去的类的配置绑定生效

2.将传进去这个类注册到容器中

beanname为全限定名

posted @ 2022-03-17 10:59  dronff  阅读(35)  评论(0)    收藏  举报