BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p

org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'applicationService' must be of type [com.meta.dbcenter.application.serv...

2016-11-04 13:30:23

阅读数:4181

评论数:0

解决: org.springframework.beans.factory.BeanNotOfRequiredTypeException

错误信息:     org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'aisleService' must be of type [com.gdie.whlocation.service...

2016-11-04 13:27:25

阅读数:3994

评论数:2

sessionfactory.getcurrentsession()获取不到session

1,如果使用hibernate配置       在hibernate.cfg.xml里配置      thread      如果使用的是getCurrentSession()的话,需要配置,否则是空指针。      使用openSession()不需要配置 2,如果使用Spri...

2016-11-04 13:25:02

阅读数:4032

评论数:0

object references an unsaved transient instance

报错:object references an unsaved transient instance - save the transient instance before flushing: com.it.shop.model.Publishers 解决:设置ManyToOne,On...

2016-11-04 13:23:58

阅读数:272

评论数:0

@ManyToOne references an unknown entity:

报错: @OneToOne or @ManyToOne on com.it.shop.model.Product.category references an unknown entity: com.it.shop.model.Category 1.检查hibernate.cfg.xm...

2016-11-04 13:20:55

阅读数:2755

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭