SpringMVC的四個基本註解annotation(控制層,業務層,持久層) -- Component Repos

                SpringMVC的四個基本註解annotation(控制層,業務層,持久層) -- @Component、@Repository @Service、@Controller 1、@Autowired與@Resource都可以用來裝配bean. 都可以寫在字段上,或寫在setter方法上。  2、@Autowired默認按類型裝配(這個註解是屬業spring的),默認
相關文章
相關標籤/搜索