Created
May 30, 2022 15:55
-
-
Save zihluwang/8dd30c685162248225b73e025721f258 to your computer and use it in GitHub Desktop.
Spring Dispatcher Servlet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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=" | |
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"> | |
<context:component-scan base-package="cn.vorbote.demo" use-default-filters="false"> | |
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> | |
</context:component-scan> | |
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | |
<property name="prefix" value="/WEB-INF/content/"/> | |
<property name="suffix" value=".jsp"/> | |
</bean> | |
<mvc:default-servlet-handler/> | |
<mvc:annotation-driven/> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment