所需要的依赖:
1 <!--springboot父节点依赖,引入这个依赖之后相关的引入就不需要配置version,springboot会选择嘴和时的版本进行添加--> 2 <parent> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-parent</artifactId> 5 <version>2.1.3.RELEASE</version> 6 <relativePath/> <!-- lookup parent from repository --> 7 </parent> 8 9 10 <!--版本维护在上面的parent属性内--> 11 <!--web项目需要的依赖--> 12 <dependency> 13 <groupId>org.springframework.boot</groupId> 14 <artifactId>spring-boot-starter-web</artifactId> 15 </dependency>
最后在创建file时,后缀加上yml就可以了!!!