springboot-jar-web

预览

 

 

与springboot-jar的区别是:

1、pom.xml

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter</artifactId>
</dependency>

替换成:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

2、application-dev.yml中,新增

server:
  port: 8081

 

posted @ 2019-10-07 00:29  遥远2  阅读(176)  评论(0编辑  收藏  举报