哪位大大幫看下spring boot server.port不起作用

天了嚕  通過application.properties裏配置server.port啓動後端端口還是8080 哪位大大能解答下

環境如下

@SpringBootApplication
public class Application {
    public static void main(String[] args){
        SpringApplication.run(Application.class,args);
    }
}
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.12.RELEASE</version>
    <relativePath/>
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
</dependencies>
appliation.properties

server.port=8088

server.port打波浪線 但是字符沒有敲錯啊
 

2020-03-08 19:58:33.771  INFO 656 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2020-03-08 19:58:35.044  INFO 656 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2020-03-08 19:58:35.058  INFO 656 --- [           main] com.nailsoul.admin.Application           : Started Application in 32.616 seconds (JVM running for 52.167)

通過-Dserver.port=8088 冒問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章