lichangben

摘要: 注解读取配置文件封装到JavaBean中 application.yml car: name: dem money: 1.01 1、 @Component + @ConfigurationProperties JavaBean @Component//交给容器管理 @ConfigurationProperties(prefix="car") 阅读全文
posted @ 2022-08-17 10:11 码小白很犇 阅读(14) 评论(0) 推荐(0)
摘要: 将组件添加到springboot容器中的注解 @Bean、@Component、@Controller、@Service、@Repository @Configuration 配置类 @Configuration(proxyBeanMethods = false) 参数: proxyBeanMethods:代理bean的方法 默认true tr 阅读全文
posted @ 2022-08-17 09:48 码小白很犇 阅读(15) 评论(0) 推荐(0)