SSM错误解决:Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource


经常我们在IDEA中运行JAVA项目后就会出现这个错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defines in class path resource [org/springframework

/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvConfiguration.class]:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:

那么如果是这种问题在运行了项目之后报错了怎么解决呢,出现这种的错误代码,我们首先应该根据23体验网上面提到的,检查一下pom.xml文件中有没有这个maven包被引入:


          org.springframework.boot
          spring-boot-starter-cache
          1.5.4.RELEASE

然后再看下是错误在哪个路径哪个文件下面,一层一层的找到问题所在并将它纠正过来,以正法纲。

你可能感兴趣的:(JAVA服务器端技术)