Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据类型为 java.sql.Clob 的 bean。如何在 bean 中设置 clob 对象的值?该值是来自 jsp 表单的字符串。
我自己想出了解决方案。我没有将属性设置为 java.sql.Clob,而是将数据类型更改为 java.lang.String 数据类型,然后将 ibatis.xml 中的参数映射更改为 #clobValue:CLOB#,这又将 String 转换为 CLOB。