Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anaer/websvr


https://github.com/anaer/websvr

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

测试地址:http://127.0.0.1:8080/websvr/index.do

SpringMVC 开发步骤
1. 新建Dynamic Web Project
2. Configure -> Convert to Maven Project 转换为Maven工程
3. 配置pom。xml, 添加spring依赖

4.0.4.RELEASE




spring-orm
org.springframework
${spring.version}


org.springframework
spring-web
${spring.version}


org.springframework
spring-webmvc
${spring.version}


org.springframework
spring-context-support
${spring.version}


4. 配置web.xml, 添加分发器DispatcherServlet,指定contextConfigLocation

dispatcher
org.springframework.web.servlet.DispatcherServlet

contextConfigLocation
/WEB-INF/conf/springMVC.xml

1


dispatcher
*.do

5. 对应指定的contextConfigLocation,添加springMVC.xml配置文件
1) 指定默认扫描包
2) 添加注解支持
3) 定义跳转后缀
6. 编写后台代码