当前位置:网站首页>application. Yaml configuring multiple running environments
application. Yaml configuring multiple running environments
2022-06-24 01:56:00 【Code siege lion】
I omitted the terminator here …
Exhibition :

Code :
---
# Define a set of production environments in this document
server:
port: 8081
servlet:
context-path: /p8081
spring:
config:
activate:
on-profile: pro
---
# Define a set of test environment in this document
server:
port: 8082
servlet:
context-path: /p8082
spring:
config:
activate:
on-profile: test
---
The production environment can be started by command
hold SpringBoot Project package
Then select the release production environment through the command
1、 First use maven Package the project 
2、 After compilation , Start by command 
Then press the keyboard Shift+ Right mouse button , Click this command to enter
, Type this command 
It can also be done through IDEA To start the configuration
1、
2、
3、
4、
边栏推荐
- Detailed explanation of SSH tunnel and stable intranet penetration using autossh
- tokio_ Rustls self signed certificate
- Embedded hardware development tutorial -- Xilinx vivado HLS case (process description)
- How does the education industry realize the TRTC interactive classroom apaas solution under the "double reduction policy"?
- What is "data" in data analysis- Cassie Kozyrkov
- Easycvr connects with Huawei IVS platform to query the foreign domain list interface definition and use sharing
- [latest] how to realize hybrid cloud active / standby redundant communication through cloud networking and VPN connection?
- [dry goods] configure failover active/acitve in transparent mode on Cisco ASA firewall
- Echo framework: add tracing Middleware
- A review of Nature Neuroscience: dynamic representation in networked nervous system
猜你喜欢

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000

layer 3 switch

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)

BIM model example

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos

Stm32g474 infrared receiving based on irtim peripherals
![[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)](/img/c8/f6c2a62b8ab8fa88bd2b3d8f35f592.jpg)
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)
![[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)](/img/b5/a8c4bbaf868dd20b7dc9449d2a4378.jpg)
[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)
随机推荐
Line/kotlin jdsl: kotlin DSL for JPA criteria API
How to use voice synthesis? Can voice synthesis modify the voice?
Research Report on global and Chinese titanium concentrate market scale and investment prospects 2022-2028
[untitled]
[tcapulusdb knowledge base] how does tcapulusdb add a business cluster cluster?
Tcapulusdb Jun · industry news collection (November 22)
[guide to cloud first] point north before tdsql elite challenge
It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)
Global and Chinese dealox industry development status and demand trend forecast report 2022-2028
Echo framework: add tracing Middleware
How does easynvr set the video recording to be saved for more than 30 days?
What does fortress server mean? What are the benefits of Fortress server installation
Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos
Blog platform was falsely blackmailed and the new hacker organization claimed responsibility for the Israeli attack | November 16 global network security hotspot
How to solve the problem of uncaught (in promise) when easywasmlayer plays a video?
Wechat open platform: OpenAPI, cloud development and basic management capability upgrade
Six steps from strategy to product - johncutlefish
Practical case - Tencent security hosting service MSS helped "zero accident" during the period of digital Guangdong re insurance!
November 15, 2021: add four numbers II. Here are four integer arrays nums1, num
Xmlmap port practice - X12 to CSV