springboot修改端口号的两种方式

前言:springboot默认的端口号为8080,端口号的配置有两种方式,一种是在配置文件application.properties中,另一种是在配置文件application.yml中。

1、第一种方式:修改配置文件application.properties文件。

在这里插入图片描述

2、第二种方式:修改配置文件application.yml

注意:冒号后的只能用空格,不能用tab
在这里插入图片描述

发布了55 篇原创文章 · 获赞 4 · 访问量 3151

猜你喜欢

转载自blog.csdn.net/qq_41347385/article/details/103454132
今日推荐