INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
<!--配数据源 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/db_cityinfo" />
<property name="username" value="root" />
<property name="password" value="root123" />
<property name="minIdle" value="5" />
<property name="maxIdle" value="20" />
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.use_sql_comments">true</prop>
<prop key="default_schema">ssh</prop>
<span style="color:#ff0000;"><prop key="hibernate.temp.use_jdbc_metadata_defaults">false</prop> </span>
</props>
</property>
<property name="annotatedClasses">
<list>
<value>com.bill.entity.User</value>
</list>
</property>
</bean>
加上红色那句可以消除那个错误,其实那个错误对系统运行没有什么影响的。
原因大概是下面这样说的:
Info
Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 JDBC driver: Oracle JDBC driver, version: 11.1.0.7.0
http://stackoverflow.com/questions/4588755/hibernate-disabling-contextual-lob-creation-as-createclob-method-threw-error