Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de1eeab

Browse files
[add] 对开发环境和生产环境配置文件的使用
1 parent 07b891b commit de1eeab

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 开发环境配置
2+
# 端口
3+
server.port=8070
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 生产环境配置
2+
# 端口
3+
server.port=8090

‎web/src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 自定义常量
22
user=Alice
3+
# 指定配置环境(开发dev/生产prod),不指定则使用本文件
4+
#spring.profiles.active=dev
35
# 端口
46
server.port=8080
57
# 上下文

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /