随笔分类 -  Spring

摘要:方法一: 1,自定义日期转换器 2.配置自定义类型转换器 3,在实体Bean上添加@DateTimeFormat,同时记得添加时间格式 4,不要忘记了添加注解驱动 方式二, @InitBinder进行时间转换 创建一个BaseController,在里面创建一个方法,加上@InitBinder注解, 阅读全文
posted @ 2018-01-26 16:45 Dear丶配角 阅读(663) 评论(0) 推荐(0)
摘要:web.xml struts.xml CustomerAction.java index.jsp 在tomcat配置文件里添加虚拟路径 阅读全文
posted @ 2017-12-24 22:20 Dear丶配角 阅读(272) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2017-12-19 18:17 Dear丶配角 阅读(139) 评论(0) 推荐(0)