【基础入门】在pom引入<parent>时标红-spring-boot-starter-web报红-

第一次用springboot会下载很多包,要等。

在pom引入时标红

【基础入门】在pom引入<parent>时标红-spring-boot-starter-web报红-_第1张图片

解决方法

settings.xml的mirrors错误

正确:

  
    
      aliyun
      aliyun Maven
      *
      https://maven.aliyun.com/repository/public
    
  

再双击install就好了

【基础入门】在pom引入<parent>时标红-spring-boot-starter-web报红-_第2张图片

 感谢:https://segmentfault.com/a/1190000038552979

spring-boot-starter-web报红

解决方法:重启idea

打成jar包

clean+package--运行

【基础入门】在pom引入<parent>时标红-spring-boot-starter-web报红-_第3张图片

 

你可能感兴趣的:(springboot2,springboot)