Skip to content

Commit 1ba3014

Browse files
committed
Removed commented configs
1 parent 9c3f9e8 commit 1ba3014

3 files changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>

0 commit comments

Comments
 (0)