[email protected]注解注入

一、注解注入     注解:就是一个类,使用@注解名称。     开发中:使用注解,取代XML配置文件。 web开发的时候,提供3个@Component注解衍生注解 功能一样的取代<bean class="">     @Repository("名称") : dao层     @Service("名称") :  service层     @Controller("名称")   web层      
相关文章
相关标签/搜索