摘要: 一、 public class ExcelUtils { public static String parseCellToString(Cell cell){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日"); String res 阅读全文
posted @ 2019-12-11 16:00 呆code 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 一、 package com.wang.utils; import java.util.HashMap; import java.util.Map; import java.util.Set; public class MapUtils { public static String parsePar 阅读全文
posted @ 2019-12-11 15:59 呆code 阅读(637) 评论(0) 推荐(0) 编辑
摘要: public class ConstantUtils { public static final Integer PAGE_SIZE=2; public static final Integer NAVIGATE_PAGES=5; } 阅读全文
posted @ 2019-12-11 15:58 呆code 阅读(570) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org 阅读全文
posted @ 2019-12-11 15:57 呆code 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 一、 自己写一个filter类 package com.ujy.filter; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRes 阅读全文
posted @ 2019-12-11 15:53 呆code 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 绑定:、 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include 阅读全文
posted @ 2019-12-11 15:47 呆code 阅读(173) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ type:"post", traditional: true, data:{arr:arr}, url:"${pageContext.request.contextPath}/customer/deleteById", dataType:"json", success: funct 阅读全文
posted @ 2019-12-11 15:46 呆code 阅读(953) 评论(0) 推荐(0) 编辑
摘要: timeout : 1000 给ajax配置如上属性 $.ajax({ type:"post", url:"pro/savePro", timeout : 1000, data:$("#forms").serialize(), success:function (msg) { window.loca 阅读全文
posted @ 2019-12-11 15:43 呆code 阅读(2201) 评论(0) 推荐(0) 编辑
摘要: 应该先将表单提交关闭,在action处添加javascript: 阅读全文
posted @ 2019-12-11 15:42 呆code 阅读(382) 评论(0) 推荐(0) 编辑
摘要: <%-- param.id是取从另一个页面传过来的值 ,id 字符串 都可以--%> <input type="hidden" name="pid"value="${param.id}"> ar str=window.location.search.substr(1).split("&"); win 阅读全文
posted @ 2019-12-11 15:39 呆code 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 导入导出excel 导入导出需要的jar包 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.16</version> </dependency> <dependency> < 阅读全文
posted @ 2019-12-11 15:32 呆code 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <welcome-file-list> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这是在web.xml里面配置的 。 阅读全文
posted @ 2019-12-11 15:24 呆code 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.d 阅读全文
posted @ 2019-12-11 15:20 呆code 阅读(283) 评论(0) 推荐(0) 编辑