Dec 28
Posted by eDWARD at 15:22
Spring可以在容器加载时在web.xml中配置filter来进行转发过滤,因为我把html作为screen的映射后缀,所以这里可以根据你的情况设置为*.jsp或*.action等等。
如果你用到了任何properties配置文件,那么就需要通过java/bin/native2ascii统一转码为utf-8编码方式
所有被渲染的view层的页面顶部增加下面的代码
Sphere: Related Content Filed In 学习路上 | Study | Tags: Spring, 乱码, 程序设计 | Add a Comment »
Dec 27
Posted by eDWARD at 15:20
首先是配置文件:(conf/mail.xml)
发送邮件的类:
测试发送类:
Sphere: Related Content Filed In 学习路上 | Study | Tags: Email, Spring, 程序设计 | Add a Comment »
Nov 26
Posted by eDWARD at 17:30
Hibernate处理clob类型的字段
方法一
字段类型为java.sql.Clob。dataobject & xdoclet:
hbm.xml:
方法二
DataObject中的数据成员类型为String,映射的数据库字段类型为org.springframework.orm.hibernate.support.ClobStringType
Xdoclet:
hbm.xml:
如果使用spring的这个clob类型就需要在applicationContext.xml中的sessionFactory里修改如下配置
这两只方式在采用oracle thin方式连接的情况下都有传输限制,解决方法是采用oci连接方式(jdbc:oracle:oci10:@sid)
Hibernate处理oracle sequence
Xdoclet:
hbm.xml:
前提是要提供SEQ:)
Sphere: Related Content Filed In 学习路上 | Study | Tags: 程序设计 | Add a Comment »