idea创建yml文件所需要的条件

Posted on 2021-09-17 14:59  忘机、  阅读(182)  评论(0编辑  收藏  举报

所需要的依赖:

 

 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就可以了!!!