
本文共 941 字,大约阅读时间需要 3 分钟。
jar包保存在百度云盘jar目录下
1.xml配置
web-app节点下增加
springmvc-test
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:config/springmvc.xml
springmvc-test
*.action
2.src下增加config文件夹(xml配置路径放在config,这个自己随意,xml对应位置就行),config增加springmvc.xml增加内容
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
4.controller大概的几种写法
5.html就不贴了,看清楚springmvc.xml配置的视图位置就行了
原文:https://www.cnblogs.com/sss-justdDoIt/p/9278971.html
转载地址:https://blog.csdn.net/weixin_33595317/article/details/115997995 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
关于作者
