
java: 无法访问org.springframework.web.WebApplicationInitializer找不到org.springframework.web.WebApplication
java: 无法访问org.springframework.web.WebApplicationInitializer找不到org.springframework.web.WebApplicationInitializer的类文件。在项目开发过程中出现找不到WebApplicationInitializer类,经过开发实践发现缺少依赖。-- 引入starter-web依赖-->报错得到解决,依赖类
·
具体报错:
java: 无法访问org.springframework.web.WebApplicationInitializer 找不到org.springframework.web.WebApplicationInitializer的类文件
在项目开发过程中出现找不到WebApplicationInitializer类,经过开发实践发现缺少依赖
在pom.xml文件中添加如下依赖:
<!-- 引入starter-web依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.2.6.RELEASE</version> </dependency>
报错得到解决,依赖类找到了!!!
更多推荐
所有评论(0)