關於spring、pringmvc整合時註解掃描

通常都設置springmvc.xml只讓掃@controller註解 spring.xml不讓掃@controller註解 (貌似這樣能夠避免一些事務上的問題) 具體配置以下:web springmvc.xml:spring <!-- 使用Annotation自動註冊Bean,只掃描@Controller --> <context:component-scan base-package="
相關文章
相關標籤/搜索