spring bean管理的註解

Class path掃描與組件的管理     @Component是一個通用的註解,可用於任何bean     @Repository,@Service,@Controller是更有針對性的註解        @Repository:通常用於註解DAO類,即持久層        @Service:通常用於註解Service類,即服務層         @Controller:通常用於Control
相關文章
相關標籤/搜索