网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

eclipse建立springMVC 简单项目

时间:2024-10-12 18:30:06

1、新建一个动态web项目,选择 Dynamic Web Project 点击 NEXT 填写项目名称,点NEXT NEXT 选中Generate web.xml 选项,结束。

eclipse建立springMVC 简单项目eclipse建立springMVC 简单项目eclipse建立springMVC 简单项目

3、引入相关jar包,如下,包括 commons-logging-1.1.1.jar;spring-beans-4.0.5.RELEASE.jar;spring-context-4.0.5.RELEASE.jar;spring-context-support-4.0.5.RELEASE.jar;spring-core-4.0.5.RELEASE.jar;spring-expression-4.0.5.RELEASE.jar;spring-web-4.0.5.RELEASE.jar;spring-webmvc-4.0.5.RELEASE.jar;spring-webmvc-portlet-4.0.5.RELEASE.jar等

eclipse建立springMVC 简单项目eclipse建立springMVC 简单项目

5、在view目录下建index.jsp,编辑页面内容保存。修改web.xml,建欢迎殳陌抻泥页:<welcome幻腾寂埒-file-list> <welcome-file>view/index.jsp</welcome-file> </welcome-file-list>保存。

eclipse建立springMVC 简单项目eclipse建立springMVC 简单项目eclipse建立springMVC 简单项目
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com