SSH
yotion2
这个作者很懒,什么都没留下…
展开
-
内存泄露监听器
Spring 刷新Introspector防止内存泄露,使用一个名为org.springframework.web.util.IntrospectorCleanupListener的监听器。 用法:在web.xml中配置:<listener> <listener-class>org.springframework.web.util.Int...2015-01-18 17:26:36 · 276 阅读 · 0 评论 -
eclipse搭建maven项目
因为要做一个oa系统,用到了spring+hibernate+springmvc,外加maven和svn,在此大致说一下环境的搭建。我用的是eclipse kepler 、maven是3.2.2. 1、添加maven jar包,eclipse添加maven插件。 (1)首先是下载maven的jar包, (2)配置环境变量:m2_home=...2014-08-02 22:11:29 · 96 阅读 · 0 评论 -
spring 发送电子邮件
首先应导入的jar包:mail(javax.mail)、activation(javax.activation)和spring-context-support。(此处不是spring jar)。 之后就是在spring的配置文件中添加发送电子邮件的相关配置信息<!-- 发送注册邮件 --> <bean id="mailSender" class="org.s...2014-08-29 16:53:41 · 1014 阅读 · 0 评论 -
org.hibernate.QueryTimeoutException: Could not execute JDBC batch update问题解决
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update在做Hibernate批量插入时,出现这个错误o...2016-10-13 09:17:24 · 2157 阅读 · 0 评论