摘要:
package org.gzcgxt.oa.domain; import lombok.Data; @Data public class User { private Integer id; private String name; private String pwd; } package org.gzcgxt.oa.util; import ja... 阅读全文
posted @ 2019-07-16 23:24
往事只能回味---
阅读(137)
评论(0)
推荐(0)
摘要:
RequestContextHolder 工具类中存有我们的 request请求对象 response响应对象 session对象 我们程序员可以在项目的任何方法中获取,方便我们使用,从而不需要在形参上面注入才能获取到对象 实际项目中的 User工具类 阅读全文
posted @ 2019-07-16 21:44
往事只能回味---
阅读(635)
评论(0)
推荐(0)
摘要:
package com.gzcgxt.http; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation... 阅读全文
posted @ 2019-07-16 21:31
往事只能回味---
阅读(365)
评论(0)
推荐(0)
摘要:
通用型日期格式 在jsp前台显示date格式 引入jsp标签库 在tomcat服务器中 后台以json格式返回数据类型,会转换成时间戳 这样子我们还要在前台再次转换一下 比较麻烦,所以我们要在返回的时间就处理好显示格式 解决方案 在User对象上面加注解标签 阅读全文
posted @ 2019-07-16 20:00
往事只能回味---
阅读(452)
评论(0)
推荐(0)
摘要:
导入相关jar包 jackson-annotations-2.5.0.jar jackson-core-2.5.0.jar jackson-databind-2.5.0.jar 阅读全文
posted @ 2019-07-16 19:36
往事只能回味---
阅读(863)
评论(0)
推荐(0)
摘要:
表单提交多个对象数据信息 后台接收代码 阅读全文
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)

浙公网安备 33010602011771号