摘要:
1.第一种配置@Component+@ConfigurationProperties 配置类 @Component public class MyConfig1 { @Bean public User user(){ return new User(); } }或者在User类上加@Componen 阅读全文
摘要:
xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema- 阅读全文