Created
June 11, 2017 03:48
-
-
Save darbyluv2code/2b612b691c69faa39453c3f5ba6d11fb to your computer and use it in GitHub Desktop.
spring-mvc-servlet.xml (Updated to support validation)
This file contains hidden or 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="com.luv2code.springdemo.mvc"> | |
| </context:component-scan> | |
| <!-- Step 4: Add support for conversion, formatting and validation support --> | |
| <mvc:annotation-driven/> | |
| <bean id="viewResolver" | |
| class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | |
| <property name="prefix" value="/WEB-INF/view/"></property> | |
| <property name="suffix" value=".jsp"></property> | |
| </bean> | |
| </beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment