Create spring mvc project
Contents
Create spring mvc project
gradle plugin:
apply plugin: ‘idea’
apply plugin: ‘eclipse’
apply plugin: ‘war’
gradle dependencies:
compile(“org.springframework:spring-core:$versionSpring”,
“org.springframework:spring-context:$versionSpring”,
“org.springframework:spring-web:$versionSpring”,
“org.springframework:spring-webmvc:$versionSpring”,
“org.springframework:spring-jdbc:$versionSpring”,
“org.springframework:spring-orm:$versionSpring”
)
web.xml
create web.xml in …/webapp/WEB-INF/
add context loader listener
org.springframework.web.context.ContextLoaderListener
spring schema index
http://www.springframework.org/schema/beans/
Create controller
/JavaEEX/src/main/java/com/wiloon/javaeex/controller/FooController.java
create springMvc.xml
for eclipse project convert project to web project
Author -
LastMod 2014-12-03