项目环境: Struts-2.3.16.3
Hibernate-4.3.6
Spring-4.1.1
在启动Jetty时,一直报这个错,对项目却没有影响。但是总看着不是那么爽。
Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
于是,百度,百度,找到这个,可能的原因: Hibernate is just verifying if the DB supports some features and adjusting itself in case it doesn't.So, it's trying to determine if it can use some new JDBC 4 methods. I guess your driver may not support the new LOB creation method
如果不想看到这个消息,可以在hibernate配置里加上 hibernate.temp.use_jdbc_metadata_defaults" ---- false 就可以了。更新驱动没试过。有兴趣的可以试一下。