File tree Expand file tree Collapse file tree
spring-mvc-handlers/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" http://www.springframework.org/schema/beans"
3+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns : mvc =" http://www.springframework.org/schema/mvc"
4+ xmlns:tx=" http://www.springframework.org/schema/tx" xmlns : context =" http://www.springframework.org/schema/context"
5+ xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
6+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
7+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
8+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" >
9+
10+ <context : component-scan base-package =" com.baeldung.spring.controller" />
11+
12+ <bean
13+ class=" org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
14+
15+ <bean
16+ class=" org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
17+
18+ <bean id =" viewResolver"
19+ class=" org.springframework.web.servlet.view.InternalResourceViewResolver" >
20+ <property name =" prefix" value =" /WEB-INF/" />
21+ <property name =" suffix" value =" .jsp" />
22+ </bean >
23+ </beans >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" http://www.springframework.org/schema/beans"
3+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns : mvc =" http://www.springframework.org/schema/mvc"
4+ xmlns:tx=" http://www.springframework.org/schema/tx" xmlns : context =" http://www.springframework.org/schema/context"
5+ xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
6+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
7+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
8+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" >
9+
10+ <context : component-scan base-package =" com.baeldung.spring.controller" />
11+
12+ <bean
13+ class=" org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" />
14+
15+ <bean
16+ class=" org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter" />
17+
18+ <bean id =" viewResolver"
19+ class=" org.springframework.web.servlet.view.InternalResourceViewResolver" >
20+ <property name =" prefix" value =" /WEB-INF/" />
21+ <property name =" suffix" value =" .jsp" />
22+ </bean >
23+ </beans >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" http://www.springframework.org/schema/beans"
3+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns : mvc =" http://www.springframework.org/schema/mvc"
4+ xmlns:tx=" http://www.springframework.org/schema/tx" xmlns : context =" http://www.springframework.org/schema/context"
5+ xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
6+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
7+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
8+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" >
9+
10+ <bean id =" HandlerMapping"
11+ class=" org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" />
12+
13+ <bean name =" /greeting.html"
14+ class=" com.baeldung.spring.controller.SimpleControllerHandlerAdapterExampleController" />
15+
16+ <bean id =" viewResolver"
17+ class=" org.springframework.web.servlet.view.InternalResourceViewResolver" >
18+ <property name =" prefix" value =" /WEB-INF/" />
19+ <property name =" suffix" value =" .jsp" />
20+ </bean >
21+ </beans >
You can’t perform that action at this time.
0 commit comments