一.问题 springboot项目启动时报错: Field userMapper in com.example.springbootdruid.service.impl.UserServiceImpl required a bean of type 'com.example.springbootdruid.mapper.UserMapper' that could not be found. 原因是因为没有扫描到对应的类 二.解决方式: 1.检查配置文件是否写对: 在springboot的配置文…
网关配置好后启动报错如下: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpoint…
SpringBoot启动报错 ***************************APPLICATION FAILED TO START*************************** Description: The bean 'XXX', defined in class path resource [com/test/cms/XXX.class], could not be registered. A bean with that name has already been def…
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125) at org.springframework.test.context.suppo…