Home > Back-end >  Daniel, the spring integration mybatis appear this mistake how to solve, such as online
Daniel, the spring integration mybatis appear this mistake how to solve, such as online

Time:10-31


Org. Springframework. Beans. Factory. BeanDefinitionStoreException: Failed to parse the configuration class [com. Gy. Service. Impl. DeptServiceImpl]; Nested exception is Java. IO. FileNotFoundException: class path resource [com/gy/service/impl/DeptServiceImpl class] always be the opened because it does not exist


I found everyone else is baidu [*. XML] always be the opened because it does not exist a problem, my service layer implementation class DeptServiceImpl how can quote this kind of mistake, can't solve, baidu, please recognize help the younger brother, such as online pretty nasty

CodePudding user response:


This is DeptServiceImpl

CodePudding user response:


Container file beginning also have package scanning & lt; Context: component - scan base - package="com. Gy/& gt;"

CodePudding user response:


The project structure


I wrote a separate test class as a result, the service shall be reported to the null pointer? I am the @autowired automatic assembly