45 lines
1.5 KiB
XML
45 lines
1.5 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
xmlns:cache="http://www.springframework.org/schema/cache"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
|
http://www.springframework.org/schema/mvc
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
|
http://www.springframework.org/schema/cache
|
|
http://www.springframework.org/schema/cache/spring-cache.xsd">
|
|
|
|
|
|
<bean
|
|
class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
|
|
<property name="order" value="2" />
|
|
</bean>
|
|
<bean name="/welcome" class="com.baeldung.BaeldungController" />
|
|
|
|
|
|
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
|
<property name="mappings">
|
|
<value>
|
|
/welcome=test
|
|
/*/welcome=test
|
|
</value>
|
|
</property>
|
|
<property name="order" value="0" />
|
|
</bean>
|
|
<bean id="test" class="com.baeldung.TestController" />
|
|
|
|
|
|
<bean
|
|
class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
|
|
<property name="order" value="1" />
|
|
</bean>
|
|
<bean class="com.baeldung.WelcomeController" />
|
|
|
|
|
|
|
|
|
|
|
|
</beans> |