- 2
- 0
- 约4.68千字
- 约 11页
- 2020-09-08 发布于浙江
- 举报
spring官网: http://projects.spring.io/spring-framework/
Eclips新建一项目 NEW-Other… 输入“maven”选择 Maven Project,点击 Next。
一路默认,如下图,输入”com.test”,”smvc”,Finish。
项目上点击右键,properties,选择“Project Facets”。点击“Convert to faceted from …”,选择“Dynamic Web Module”。OK。
官网上的maven依赖拷贝过来。
项目上点击右键,properties,选择“Deployment Assembly”。 点击 Add … 选择 Java Build Path Entries,选择 Maven Dependencies。Finish
在WebContent/WEB-INF里添加web.xml
?xml version=
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=/2001/XMLSchema-instance
xmlns=/xml/ns/javaee xmlns:web=/xml/ns/javaee
xmlns:web_1=/xml/ns/javaee/web-app_2_5.xsd
xsi:schemaLoca
原创力文档

文档评论(0)