Basic working annotation project
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/aopalliance-1.0.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/aopalliance-1.0.jar
Normal file
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/commons-logging-1.1.1.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/commons-logging-1.1.1.jar
Normal file
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-core-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-core-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-web-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-web-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
BIN
SpringMVC/target/web/WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar
Normal file
BIN
SpringMVC/target/web/WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar
Normal file
Binary file not shown.
25
SpringMVC/target/web/WEB-INF/mvc-dispatcher-servlet.xml
Executable file
25
SpringMVC/target/web/WEB-INF/mvc-dispatcher-servlet.xml
Executable file
@@ -0,0 +1,25 @@
|
||||
<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"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
||||
|
||||
<context:annotation-config />
|
||||
<context:component-scan base-package="com.raychatter.common.controller" />
|
||||
|
||||
<bean
|
||||
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="prefix">
|
||||
<value>/WEB-INF/pages/</value>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<value>.jsp</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="exceptionResolver" class="com.raychatter.common.exception.AnnotationHandler" />
|
||||
|
||||
</beans>
|
||||
5
SpringMVC/target/web/WEB-INF/pages/hello.jsp
Executable file
5
SpringMVC/target/web/WEB-INF/pages/hello.jsp
Executable file
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>Message : ${message}</h1>
|
||||
</body>
|
||||
</html>
|
||||
28
SpringMVC/target/web/WEB-INF/web.xml
Executable file
28
SpringMVC/target/web/WEB-INF/web.xml
Executable file
@@ -0,0 +1,28 @@
|
||||
<web-app id="WebApp_ID" version="2.4"
|
||||
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
|
||||
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
|
||||
<display-name>Spring Web MVC Application</display-name>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>mvc-dispatcher</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>mvc-dispatcher</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>/WEB-INF/mvc-dispatcher-servlet.xml</param-value>
|
||||
</context-param>
|
||||
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
|
||||
</web-app>
|
||||
Reference in New Issue
Block a user