2014-03-16 01:08:05 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2015-07-23 16:54:23 +03:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
|
xsi:schemaLocation="
|
2014-03-16 01:08:05 +02:00
|
|
|
http://www.springframework.org/schema/beans
|
2015-10-26 15:09:08 +02:00
|
|
|
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
|
2014-07-17 01:36:40 +05:30
|
|
|
http://www.springframework.org/schema/context
|
2015-10-26 15:09:08 +02:00
|
|
|
http://www.springframework.org/schema/context/spring-context-4.2.xsd
|
2014-03-16 01:08:05 +02:00
|
|
|
http://www.springframework.org/schema/mvc
|
2015-10-26 15:09:08 +02:00
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd"
|
2015-07-23 16:54:23 +03:00
|
|
|
>
|
2014-03-16 01:08:05 +02:00
|
|
|
|
2015-07-23 16:54:23 +03:00
|
|
|
<mvc:annotation-driven/>
|
|
|
|
|
<context:component-scan base-package="org.baeldung.spring.controller"/>
|
|
|
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
|
|
|
<property name="prefix" value="/WEB-INF/view/"/>
|
|
|
|
|
<property name="suffix" value=".jsp"/>
|
|
|
|
|
</bean>
|
2014-03-16 01:08:05 +02:00
|
|
|
|
2015-07-23 16:54:23 +03:00
|
|
|
<mvc:view-controller path="/sample.html" view-name="sample"/>
|
2014-03-16 01:08:05 +02:00
|
|
|
|
|
|
|
|
</beans>
|