沒有指定版本好,本地庫裏面:spring-boot-starter-web的版本太多致使maven不能選擇。web
具體配置以下,version要選擇本身適配的。spring
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.0.2.RELEASE</version> </dependency>