Spring(7)-注解

注解:就是一个类,使用@注解名称 开发中:使用注解 取代 xml配置文件。 @Component @component取代 @Component(“id”) 取代 web开发,提供3个@Component注解衍生注解(功能一样)取代 @Repository(“名称”):dao层 @Service(“名称”):service层 @Controller(“名称”):web层 @Autowired:
相关文章
相关标签/搜索