摘要: 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 阅读(91) 评论(0) 推荐(0) 编辑
摘要: @Override public List<SysAdminMenu> getAdminMenusAll() { return sysAdminMenuMapper.getAdminMenusAll(); } 去掉@override注释就不报错,加上就报错,原因是jdk版本太低。解决方法: 选择1. 阅读全文
posted @ 2018-02-05 17:02 精灵lc 阅读(312) 评论(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 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 当session过期后可以用过滤器来设置重定向页面 public class ActionFilter extends HttpServlet implements Filter { private FilterConfig filterConfig; public void init(Filter 阅读全文
posted @ 2018-01-19 14:58 精灵lc 阅读(169) 评论(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 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 错误如下: 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 阅读(7648) 评论(0) 推荐(0) 编辑
摘要: 含有GROUP BY子句的查询中如何显示COUNT()为0的结果 在SQL Server数据库查询中,为了对查询结果进行对比、分析,我们经常会用到GROUP BY子句以及COUNT()函数来对查询结果进行分类、统计等。但是我们在使用的过程中往往会存在一些问题,本文我们就介绍了一个问题,并给出了它的解 阅读全文
posted @ 2017-11-22 14:52 精灵lc 阅读(6197) 评论(0) 推荐(1) 编辑
摘要: 1.web容器中设置(此处以tomcat为例) <session-config> <session-timeout>30</session-timeout> </session-config>Tomcat默认session超时时间为30分钟,可以根据需要修改,负数或0为不限制session失效时间。 阅读全文
posted @ 2017-11-22 14:50 精灵lc 阅读(163) 评论(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 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: debug模式下eclipse总是自动跳到ThreadPoolExecutor解决方案 debug模式下eclipse总是自动跳到ThreadPoolExecutor解决方案 在eclipse中点击Window->Preference->Java->Debug 将“Suspend execution 阅读全文
posted @ 2017-11-22 14:49 精灵lc 阅读(250) 评论(0) 推荐(0) 编辑