啓動ssh框架的項目時,一直報這樣的錯誤Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException,查詢了下資料發現原來是項目啓動時,Hibernate試圖從數據庫中檢索一些元信息,此時能夠將hibernate的配置改成:java
<prop key="hibernate.temp.use_jdbc_metadata_defaults">false</prop>數據庫
<property name="hibernateProperties">框架
<props>ssh
<prop key="hibernate.temp.use_jdbc_metadata_defaults">false</prop>spa
</props>hibernate
</property>orm