摘要: 1.第一种配置@Component+@ConfigurationProperties 配置类 @Component public class MyConfig1 { @Bean public User user(){ return new User(); } }或者在User类上加@Componen 阅读全文
posted @ 2022-07-09 09:09 Dabo丶 阅读(97) 评论(0) 推荐(0) 编辑
摘要: xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema- 阅读全文
posted @ 2022-07-09 08:51 Dabo丶 阅读(42) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示