摘要:
1.第一种配置@Component+@ConfigurationProperties 配置类 @Component public class MyConfig1 { @Bean public User user(){ return new User(); } }或者在User类上加@Componen 阅读全文
posted @ 2022-07-09 09:09
Dabo丶
阅读(103)
评论(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丶
阅读(48)
评论(0)
推荐(0)

浙公网安备 33010602011771号