在配置xml文件時(shí)出現(xiàn)的問(wèn)題
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [beans-b.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/index/CandidateComponentsIndexLoader
這個(gè)是在單元測(cè)試的時(shí)候出現(xiàn)的錯(cuò)誤,好像顯示的是無(wú)法找到spring framework中的某個(gè)類,但是我在配置的過(guò)程中dataSource是沒(méi)問(wèn)題的,
錯(cuò)誤應(yīng)該是出在EntityManagerFactory裏,但是那段代碼我是直接複製過(guò)來(lái)的,包掃描的包名也被我改了,所以出了什麼錯(cuò)誤請(qǐng)大家指正
2018-11-21
這個(gè)是測(cè)試代碼
2018-11-21
這是我的xml文件