Spring(7)-註解

註解:就是一個類,使用@註解名稱 開發中:使用註解 取代 xml配置文件。 @Component @component取代 @Component(「id」) 取代 web開發,提供3個@Component註解衍生註解(功能一樣)取代 @Repository(「名稱」):dao層 @Service(「名稱」):service層 @Controller(「名稱」):web層 @Autowired:
相關文章
相關標籤/搜索