摘要: var selectmap = new Array(); /(\x0f[^\x0f]+)\x0f[\s\S]*\1/.test("\x0f"+selectmap.join("\x0f\x0f") +"\x0f")返回为true表示存在重复数据 阅读全文
posted @ 2018-05-12 11:04 精灵lc 阅读(102) 评论(0) 推荐(0)
摘要: @Override public List<SysAdminMenu> getAdminMenusAll() { return sysAdminMenuMapper.getAdminMenusAll(); } 去掉@override注释就不报错,加上就报错,原因是jdk版本太低。解决方法: 选择1. 阅读全文
posted @ 2018-02-05 17:02 精灵lc 阅读(345) 评论(0) 推荐(0)
摘要: spring项目启动的时候报如下错误: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the App 阅读全文
posted @ 2018-02-05 14:48 精灵lc 阅读(925) 评论(0) 推荐(0)
摘要: 当session过期后可以用过滤器来设置重定向页面 public class ActionFilter extends HttpServlet implements Filter { private FilterConfig filterConfig; public void init(Filter 阅读全文
posted @ 2018-01-19 14:58 精灵lc 阅读(179) 评论(0) 推荐(0)
摘要: pom.xml中不需要有包 <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency> 若xml文件没有在resouce文件夹内需要在po 阅读全文
posted @ 2017-11-22 14:55 精灵lc 阅读(301) 评论(0) 推荐(0)
摘要: 含有GROUP BY子句的查询中如何显示COUNT()为0的结果 在SQL Server数据库查询中,为了对查询结果进行对比、分析,我们经常会用到GROUP BY子句以及COUNT()函数来对查询结果进行分类、统计等。但是我们在使用的过程中往往会存在一些问题,本文我们就介绍了一个问题,并给出了它的解 阅读全文
posted @ 2017-11-22 14:52 精灵lc 阅读(6406) 评论(0) 推荐(1)
摘要: 错误如下: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlTemplate' defined in URL [file:/E:/sources 阅读全文
posted @ 2017-11-22 14:52 精灵lc 阅读(7695) 评论(0) 推荐(0)
摘要: 1.web容器中设置(此处以tomcat为例) <session-config> <session-timeout>30</session-timeout> </session-config>Tomcat默认session超时时间为30分钟,可以根据需要修改,负数或0为不限制session失效时间。 阅读全文
posted @ 2017-11-22 14:50 精灵lc 阅读(175) 评论(0) 推荐(0)
摘要: public static void main(String[] args) throws Exception { String beginDate = "2016-07-16";//开始时间 String endDate = "2016-07-25";//结束时间 SimpleDateFormat 阅读全文
posted @ 2017-11-22 14:50 精灵lc 阅读(1561) 评论(0) 推荐(0)
摘要: 在web.xml中 <session-config> <session-timeout>15</session-timeout> </session-config> 这里的15也就是15分钟失效. controller中: request.getSession().setAttribute("u", 阅读全文
posted @ 2017-11-22 14:49 精灵lc 阅读(701) 评论(0) 推荐(0)