SqlServer数据库中text/ntext字段,在用jtds1.2驱动时,会出现用getString()取不到值的问题,toString()也不行。
昨天查了下帮助可以通过简单的配置解决。即在数据库连接时增加useLOBs=false参数。
类如:<property name="connection.url">jdbc:jtds:sqlserver://127.0.0.1/myRmtes;useLOBs=false</property>