异常总结

Posted ms-grf

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异常总结相关的知识,希望对你有一定的参考价值。

SSH中的异常

1.这个异常出现的原因是,先建立的Customer对象以及表中,没有引用外键,后来加了一个BaseDict基础字典表,Customer把几个字段设置成了BaseDict的外键,所以在启动的时候就报错

  解决的方法是:关闭hibernate配置中的自动更新

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionManager‘ defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean ‘sessionFactory‘ while setting bean property ‘sessionFactory‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema management to JDBC target [alter table cst_customer add constraint FKeh5g36duab8g1h051pdjfwcgd foreign key (cust_source) references base_dict (dict_id)]

 

以上是关于异常总结的主要内容,如果未能解决你的问题,请参考以下文章

异常和TCP通讯

片段中的Android致命异常

mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段

mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段

springcloud报错-------关于 hystrix 的异常 FallbackDefinitionException:fallback method wasn't found(代码片段

片段中的getView()导致抛出异常,不确定原因