- 博客(19)
- 收藏
- 关注
原创 主动获取spring容器工具类SpringContextUtil
/** * 获取spring容器,以访问容器中定义的其他bean */@Componentpublic class SpringContextUtil implements ApplicationContextAware { // Spring应用上下文环境 @Autowired private ApplicationContext applicationCont
2016-06-13 17:55:03
8743
转载 Maven常用仓库地址以及手动添加jar包到仓库
共有的仓库http://repository.sonatype.org/content/groups/public/http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/http://mvnrepository.com/http://search.maven.org/私有的仓库http://repos
2016-05-26 16:37:07
585
原创 JS常用方法
/** * 将Form对象转换成JSON格式数据 */$.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[th
2016-05-26 11:38:39
519
原创 MYSQL知识点整理
参考博客:http://www.cnblogs.com/ggjucheng/archive/2012/11/11/2765237.html1,filesort Explain 命令输出信息中的 filesort ,就是告诉你 MySQL 需要进行实际的排序操作而不能通过索引获得已排序数据。 MySQL 在进行排序的时候,只有当返回的数据和排序条件不在同一个表
2016-05-25 16:21:07
471
原创 JAVA中LIST实现关联和左关联ListStringUtil
public class ListStringUtil { /**@ * 将相关字典表查询list信息合并到主业务查询数据List中(list数据强关联,mainList中存在匹配到dictList的数据才会返回) * @param mainList 主业务数据的list * @param dictList 相关字典表信息list * @para
2016-05-19 11:55:40
6466
转载 JVM 优化经验总结
本文讲解了如何将新对象预留在年轻代、如何让大对象进入年老代、如何设置对象进入年老代的年龄、稳定的 Java 堆 VS 动荡的 Java 堆、增大吞吐量提升系统性能、尝试使用大的内存分页、使用非占有的垃圾回收器等主题。原贴地址:http://www.ibm.com/developerworks/cn/java/j-lo-jvm-optimize-experience/index.html
2016-03-25 15:00:07
348
原创 线程池的创建
创建线程池的构造方法ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler) // 用给定的初始参数和默认的线程工厂创建新的 ThreadPoo
2016-03-24 15:20:24
931
原创 MYSQL数据导入导出
数据导入,涉及造数据public class Test { public static void main(String[] args) throws IOException { File file = new File("E:/a.txt"); if (!file.exists()) { file.createNewF
2016-03-24 14:44:45
400
原创 JS日期格式化
// 日期格式化Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth() + 1, // 月份 "d+" : this.getDate(), // 日 "h+" : this.getHours(), // 小时 "m+" : this.getMinutes(), // 分 "s+" :
2015-10-10 14:50:04
799
原创 网页提交时添加遮罩层
// 表单提交遮罩$(document).ready(function() { $("form").submit(function() { // 添加 GRAYLAYER.create("grayLayer-div"); window.onblur = function() { // 删除 GRAYLAYER.del("grayLayer-div"); }; })
2015-10-10 14:48:14
5963
原创 JS自定义MAP对象
/** * @version 1.0 * 用于实现页面 Map 对象,Key只能是String,对象随意 */var Map = function(){ this._entrys = new Array(); this.put = function(key, value){ if (key == null || key == undefined) {
2015-10-10 14:46:33
1197
原创 SPRING接收前台传入List时,超过256报IndexOutOfBoundsException异常
首先看看异常org.springframework.beans.InvalidPropertyException: Invalid property 'detail[256]' of bean class [com.suning.asvp.mer.entity.InviteCooperationInfo]: Index of out of bounds in property path 'de
2015-08-10 16:34:29
9296
原创 【Spring】学习点滴
1、配置sessionFactory中的ORM映射关系时的三种方式。<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> com/test/bean/LoginParam.hb
2014-03-12 19:38:57
610
原创 【struts】Unable to load configuration 相关仔细查看报错信息
Unable to load configuration. -bean -jar:file:/D:/workProgram/apache-tomcat-6.0.33/webapps/ssh/WEB-INF/lib/struts2-core-2.3.16.jar!/struts-default.xml:40:72 atcom.opensymphony.xwork2.config.Config
2014-03-05 19:56:16
1539
原创 【hibernate】所遇问题分析,总结
1、利用Struts走完一个action后,希望根据结果走另一个action时,需要配置type="redirectAction",否则会报404。 /updatePerson.jsp type="redirectAction">/listAll.action 关于type的指定常用的还有chain(用来处理acti
2014-02-22 21:45:11
686
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人