<! - package scanning controller ->
<context: Component Base-Package-Scan = "! <- where control path package ->"> </ context: Component-Scan>
! <- specify annotations arranged spring mvc ->
<-! declared equivalent
processor mapper RequestMappingHandlerMapping controller to find ways how
the processor adapter RequestMappingHandlerAdapter what is characterized java class spring mvc controller
->
<MVC : Annotation-Driven> </ MVC: Annotation-Driven>
! <- jsp configuration built viewresolver ->
<the bean class = "org.springframework.web.servlet.view.InternalResourceViewResolver">
<-! configuration view prefix ->
<Property name = "prefix" value = "/ the WEB-INF / JSP /"> </ Property>
<-! suffix configuration view ->
<Property name = "suffix" value = ".jsp"></property>
</bean>
SSM in spring-mvc.xml profile
Guess you like
Origin www.cnblogs.com/LFY001023/p/10966743.html
Recommended
Ranking