摘要: 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) 编辑
摘要: 控制台不断打印 batch acquisition of 0 triggers 解决方式 : 在log4j.properties的配置文件中加 log4j.logger.org.quartz=INFO 阅读全文
posted @ 2017-11-22 14:49 精灵lc 阅读(877) 评论(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 阅读(688) 评论(0) 推荐(0) 编辑
摘要: .wrap{ white-space:nowrap;overflow:hidden;text-overflow: ellipsis; } <th class="wrap">项目名称</th> <td class="wrap" title="${item1['product_name']}">${it 阅读全文
posted @ 2017-11-22 14:48 精灵lc 阅读(177) 评论(0) 推荐(0) 编辑
摘要: HTML: <div class="tabs clearfix"> <ul id="der"> <li ><a href="<%=basePath%>AppUserFeedback/toSelect.do?flag=product">项目审核列表<em></em></a></li> <li ><a  阅读全文
posted @ 2017-11-22 14:47 精灵lc 阅读(949) 评论(0) 推荐(0) 编辑
摘要: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call '“refresh”' before accessing beans via the ApplicationContext 报错 阅读全文
posted @ 2017-11-22 14:47 精灵lc 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 在用eclipse的时候会经常用到SVN来进行代码的版本控制,为了方便起见,我们会保存密码,从此之后就不会再出现输入或者修改用户名和密码的地方了,这时候想切换用户怎么办,在本地操作的一种方法是删除SVN账号的配置文件 首先你要查看自己eclipse用的是那个版本的SVN,也就是SVN Interfa 阅读全文
posted @ 2017-11-22 14:46 精灵lc 阅读(13380) 评论(0) 推荐(1) 编辑
摘要: Error creating bean with name ‘org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0’ Caused by: javax.validation.ValidationExcept 阅读全文
posted @ 2017-11-22 14:45 精灵lc 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 一、jdbc中: jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://202.108.211.55:3306/app-apm?useUnicode=true&characterEncoding=UTF8 jdbc.username=test 阅读全文
posted @ 2017-11-22 14:44 精灵lc 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 步骤有3 : 首先保证:Windows-> preservences->SVN的接口Client为 1.8以上的 1 ) 打开eclipse中SVN资源库 在Eclipse中选择Windows-> Show View->others 如果列表里面没有就去 other... 里面找 下图是打开后的SV 阅读全文
posted @ 2017-11-22 14:44 精灵lc 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 1 处理乱码方式: 1 连接数据库的时候 jdbc.properties:jdbc:mysql://localhost:3306/myproject?useUnicode=true&characterEncoding=utf8 2 修改mysql配置文件my.ini/my.cnf default-c 阅读全文
posted @ 2017-11-22 14:43 精灵lc 阅读(199) 评论(0) 推荐(0) 编辑
摘要: BigDecimal db = new BigDecimal(transmoeny); System.out.println("科学计数:" + db.toString()); System.out.println("普通计数:" + db.toPlainString()); /** * 格式化 金 阅读全文
posted @ 2017-11-22 14:41 精灵lc 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.spring 阅读全文
posted @ 2017-11-22 14:40 精灵lc 阅读(2439) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要介绍了使用Cors实现JavaWeb跨域请求问题的方法,非常不错,具有参考借鉴价值,需要的朋友可以参考下 之前用jsonp 解决跨域问题,现在用CORS实现跨域请求解决java 跨域问题: 主要代码如下 package com.hy.fliter; import java.io.IOEx 阅读全文
posted @ 2017-11-22 14:40 精灵lc 阅读(20591) 评论(0) 推荐(0) 编辑
摘要: HTML5 是下一代的 HTML。 什么是 HTML5? HTML5 将成为 HTML、XHTML 以及 HTML DOM 的新标准。 HTML 的上一个版本诞生于 1999 年。自从那以后,Web 世界已经经历了巨变。 HTML5 仍处于完善之中。然而,大部分现代浏览器已经具备了某些 HTML5  阅读全文
posted @ 2017-11-22 14:39 精灵lc 阅读(232) 评论(0) 推荐(0) 编辑