|
@@ -4,10 +4,7 @@ import com.alibaba.druid.pool.DruidDataSource;
|
|
import com.alibaba.druid.proxy.jdbc.NClobProxyImpl;
|
|
import com.alibaba.druid.proxy.jdbc.NClobProxyImpl;
|
|
import org.apache.ibatis.type.BaseTypeHandler;
|
|
import org.apache.ibatis.type.BaseTypeHandler;
|
|
import org.apache.ibatis.type.JdbcType;
|
|
import org.apache.ibatis.type.JdbcType;
|
|
-import org.apache.ibatis.type.MappedJdbcTypes;
|
|
|
|
-import org.apache.ibatis.type.MappedTypes;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
@@ -20,10 +17,10 @@ import java.sql.*;
|
|
*@AUTHOR:赵常飞
|
|
*@AUTHOR:赵常飞
|
|
*@date 2023/10/10 16:50
|
|
*@date 2023/10/10 16:50
|
|
*/
|
|
*/
|
|
-@MappedTypes(Clob.class)
|
|
|
|
-@MappedJdbcTypes(JdbcType.CLOB)
|
|
|
|
-@Component
|
|
|
|
-public class NClobTypeHandler extends BaseTypeHandler<String> {
|
|
|
|
|
|
+//@MappedTypes(Clob.class)
|
|
|
|
+//@MappedJdbcTypes(JdbcType.CLOB)
|
|
|
|
+//@Component
|
|
|
|
+public class NClobTypeHandlerBs extends BaseTypeHandler<String> {
|
|
@Autowired
|
|
@Autowired
|
|
private DruidDataSource datasource;
|
|
private DruidDataSource datasource;
|
|
|
|
|