0% found this document useful (0 votes)
36 views2 pages

Chee T Sheet Spring

The document contains configuration files for a Spring MVC web application. It includes a web.xml file that maps the DispatcherServlet to handle requests with an .htm extension. A pom.xml file defines dependencies on Spring framework, JUnit, MySQL, and JSTL libraries. A telusko-servlet.xml file configures Spring with annotation support and component scanning enabled.

Uploaded by

Megha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Chee T Sheet Spring

The document contains configuration files for a Spring MVC web application. It includes a web.xml file that maps the DispatcherServlet to handle requests with an .htm extension. A pom.xml file defines dependencies on Spring framework, JUnit, MySQL, and JSTL libraries. A telusko-servlet.xml file configures Spring with annotation support and component scanning enabled.

Uploaded by

Megha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

web.

xml
<servlet>
<servlet-name>telusko</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>telusko</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>

Maven dependency (pom.xml)


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.1.8.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.1.8.RELEASE</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.36</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>

telusko-servlet.xml

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:ctx="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
">

<ctx:annotation-config></ctx:annotation-config>
<ctx:component-scan base-package=></ctx:component-scan>
</beans>

ma

You might also like