- 博客(6)
- 收藏
- 关注
转载 Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
错误代码: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove readOnly ma
2007-04-29 09:25:00 1279
原创 Spring声明事务方法
spring声明式事务管理的两种方式传统的:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" dest
2007-04-28 18:09:00 1922
原创 hibernate一对多session关闭问题
今天在座公司项目管理(ssh)的时候遇到了hibernate一对多session关闭的问题,后来在网上查到可以通过在web.xml里加入一个过滤器来解决但是还是不知其深层原因web.xml过滤器代码如下: hibernateFilterorg.springframework.orm.hibernate3.support.OpenSessionInViewFilterhibernateF
2007-04-27 11:42:00 1286 1
原创 日期工具类
import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;/** * @docRoot DateProcessor * @author gonghaitao * @version 1.0 * @serialData 20
2007-04-19 10:05:00 767
原创 利用增加controler解决struts的中文问题
编写一个用于转换编码的类Character继承 org.apache.struts.action.RequestProcessor类重写 protected boolean processRoles(HttpServletRequest request,HttpServletResponse response, ActionMapping mapping)和protected vo
2007-04-19 09:53:00 701
原创 mysql存贮中文问题
数据库链接url格式为:jdbc:mysql://localhost:3306/exam?characterEncoding=gb2312&useUnicode=true注意后边的“characterEncoding=gb2312&useUnicode=true”如果不成功试一下将mysql安装目录下的my.ini中的default-character-set=gb2312
2007-04-19 09:37:00 728
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人