Disabling contextual LOB creation as createClob()

启动ssh框架的项目时,一直报这样的错误Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException,查询了下资料发现原来是项目启动时,Hibernate试图从数据库中检索一些元信息,此时可以将hibernate的配置改为:

<prop key="hibernate.temp.use_jdbc_metadata_defaults">false</prop>


        <property name="hibernateProperties">

            <props>

                <prop key="hibernate.temp.use_jdbc_metadata_defaults">false</prop>

            </props>

        </property>

  



猜你喜欢

转载自my.oschina.net/u/2438634/blog/541197
LOB