使用注解开发
1)bean:
//@Component等价于
@Component
public class User {
private String name;
}
<?xml version="1.0" encoding="UTF-8"?>
2)属性注入注解:
3)衍生注解
4)自动装配注解
上一篇博客:
//@Component等价于
@Component
public class User {
private String name;
}
<?xml version="1.0" encoding="UTF-8"?>
上一篇博客: