NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
`@ConfigurationProperties`除了用在类上注解,也可以用在public修饰的`@Bean`方法,用来绑定属性到第三方组件上.如下所示: ~~~ @ConfigurationProperties(prefix = "another") @Bean public AnotherComponent anotherComponent() { ... } ~~~ 所有`another `开头的属性,将映射到`AnotherComponent`对象上.