一个简单的spring boot web项目,却以application启动

    <parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
  ....
    <dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
	</dependencies>

当版本是2.2.2.RELEASE 时是以web项目启动的,但是 当版本是2.2.6.RELEASE 是 却是application启动的 :rofl:

2.2.6.RELEASE 需要配置额外的东西吗

没咋关注过这个日志。能跑就行 :roll_eyes:

没报错但是不是web启动啊 :joy:
看了下源码 项目启动后,没加载 javax.servlet.Servlet, org.springframework.web.context.ConfigurableWebApplicationContext
这两个类 导致的

1 个赞