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
這個(gè)怎么啦:
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注入時(shí)是不是用的接口,dao實(shí)現(xiàn)類有沒(méi)有繼承applicationsupp什么那個(gè)類