摘要: 表单提交多个对象数据信息 后台接收代码 阅读全文
posted @ 2019-07-16 17:12 往事只能回味--- 阅读(227) 评论(0) 推荐(0)
摘要: springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:springMVC.xml / ... 阅读全文
posted @ 2019-07-16 16:42 往事只能回味--- 阅读(418) 评论(0) 推荐(0)
摘要: 解决SpringMVC 请求重定向无法共享数据问题 阅读全文
posted @ 2019-07-16 15:49 往事只能回味--- 阅读(905) 评论(0) 推荐(0)
摘要: @RequestMapping("/index") @ResponseBody 阅读全文
posted @ 2019-07-16 15:28 往事只能回味--- 阅读(146) 评论(0) 推荐(0)
摘要: 1.tomcat下面的web.xml文件配置信息 2.项目中 web.xml配置文件 从以上两段配置文件中可以看出 我们开发的项目 web.xml确实把 tomcat /conf/web.xml 中的 <url-pattern>/</url-pattern> 覆盖 从而导致图片 js css 等文件 阅读全文
posted @ 2019-07-16 15:03 往事只能回味--- 阅读(329) 评论(0) 推荐(0)
摘要: springMVC入门学习 1.导入依赖jar spring-beans-4.1.2.RELEASE.jar spring-context-4.1.2.RELEASE.jar spring-core-4.1.2.RELEASE.jar spring-expression-4.1.2.RELEASE. 阅读全文
posted @ 2019-07-16 14:32 往事只能回味--- 阅读(210) 评论(0) 推荐(0)
摘要: @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("utf-8"); resp.set... 阅读全文
posted @ 2019-01-07 10:24 往事只能回味--- 阅读(147) 评论(0) 推荐(0)
摘要: 编写第一个Servlet程序 重要的在于如何去配置项目中的web.xml文件 <servlet-class> 设置servlet程序全限定路径 也就是在项目的中路径 <servlet-name> 设置当前servlet名称 也就是给servlet取一个名字 <url-pattern> 设置当前ser 阅读全文
posted @ 2018-12-27 19:33 往事只能回味--- 阅读(137) 评论(0) 推荐(0)
摘要: 1.使用eclipse创建个普通的Java SE项目 名称:CRM <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.o 阅读全文
posted @ 2018-12-26 23:07 往事只能回味--- 阅读(209) 评论(0) 推荐(0)
摘要: package com.zsphp.domain; public class User { private String userId; private String userName; private String password; public String getUserId() { return userId; } ... 阅读全文
posted @ 2018-12-20 14:42 往事只能回味--- 阅读(162) 评论(0) 推荐(0)