spring註解開發

    (一)、配置文件(常用標籤及作用)         1、<context:component-scan>和<context:annotation-config/>          spring就會去自動掃描base-package對應的路徑或者該路徑的子包下面的java文件,如果掃描到文件中帶有@Service,@Component,@Repository,@Controller等這些注
相關文章
相關標籤/搜索