![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spirng
文章平均质量分 80
DancingMarks
这个作者很懒,什么都没留下…
展开
-
Spring 事务标签配置
配置文件如下:http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.spr转载 2014-05-03 00:02:58 · 524 阅读 · 0 评论 -
Spring配置datasource三种方式
1,使用org.springframework.jdbc.datasource.DriverManagerDataSource说明:DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用。id="dataSource" class="org.springframework.jdbc.datasource.DriverManag转载 2014-04-30 11:02:39 · 443 阅读 · 0 评论 -
SSH+MySQL中关于大字段的设置
Spring的HibernateTemplate的既有方法完全兼容对CLOB对象的操作,仅仅需要进行简单的配置:1.保留实体中需要保存为CLOB对象的属性为String,而在hbm映射文件中将其类型修改为org.springframework.orm.hibernate3.support.ClobStringType2.如果仅仅这样,会抛出异常:No LobHandler found fo转载 2014-04-30 11:15:01 · 561 阅读 · 0 评论