摘要:
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
往事只能回味---
阅读(142)
评论(0)
推荐(0)
摘要:
RequestContextHolder 工具类中存有我们的 request请求对象 response响应对象 session对象 我们程序员可以在项目的任何方法中获取,方便我们使用,从而不需要在形参上面注入才能获取到对象 实际项目中的 User工具类 阅读全文
posted @ 2019-07-16 21:44
往事只能回味---
阅读(637)
评论(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
往事只能回味---
阅读(366)
评论(0)
推荐(0)
摘要:
通用型日期格式 在jsp前台显示date格式 引入jsp标签库 在tomcat服务器中 后台以json格式返回数据类型,会转换成时间戳 这样子我们还要在前台再次转换一下 比较麻烦,所以我们要在返回的时间就处理好显示格式 解决方案 在User对象上面加注解标签 阅读全文
posted @ 2019-07-16 20:00
往事只能回味---
阅读(454)
评论(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
往事只能回味---
阅读(869)
评论(0)
推荐(0)
摘要:
表单提交多个对象数据信息 后台接收代码 阅读全文
posted @ 2019-07-16 17:12
往事只能回味---
阅读(229)
评论(0)
推荐(0)
摘要:
springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:springMVC.xml / ... 阅读全文
posted @ 2019-07-16 16:42
往事只能回味---
阅读(420)
评论(0)
推荐(0)
摘要:
解决SpringMVC 请求重定向无法共享数据问题 阅读全文
posted @ 2019-07-16 15:49
往事只能回味---
阅读(907)
评论(0)
推荐(0)
摘要:
@RequestMapping("/index") @ResponseBody 阅读全文
posted @ 2019-07-16 15:28
往事只能回味---
阅读(148)
评论(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
往事只能回味---
阅读(331)
评论(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
往事只能回味---
阅读(215)
评论(0)
推荐(0)

浙公网安备 33010602011771号