摘要: 基本 web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 23:36 2637282556 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1类中方法对应的URL请求路径有相同部分,可以放在类外面@Controller@RequestMapping("/user")public class LonginController { @RequestMapping("/login") //实际请求路径是... 阅读全文
posted @ 2017-04-12 22:58 2637282556 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 基本配置 web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 22:53 2637282556 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.默认的访问的URL都会被DispatcherServlet所拦截,比如拦截规则定义为/; 也就是说,所有的请求都会被springMVC拦截,根据HandlerMapping的配置来匹配对应的URL映射,而对于静态资源来说,默认的Spring MVC是没有注册匹配... 阅读全文
posted @ 2017-04-12 22:33 2637282556 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 基本配置: web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocati... 阅读全文
posted @ 2017-04-12 18:19 2637282556 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 基本配置: web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 17:26 2637282556 阅读(284) 评论(0) 推荐(0) 编辑