Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Entity
這個怎么啦:
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Entity?
2016-11-22
有可能少了jpa的jar包
2016-11-30
看你的applicationContext.xml文件的配置,setter注入時是不是用的接口,dao實現(xiàn)類有沒有繼承applicationsupp什么那個類