add: 多环境配置
This commit is contained in:
parent
086ab27837
commit
a18783fca4
@ -3,6 +3,10 @@ package cn.allms.community;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 啓動入口
|
||||
* @author josxy
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class MxCommunityApplication {
|
||||
|
||||
|
||||
4
src/main/resources/application-dev.yml
Normal file
4
src/main/resources/application-dev.yml
Normal file
@ -0,0 +1,4 @@
|
||||
server:
|
||||
port: 9420
|
||||
servlet:
|
||||
context-path: /api
|
||||
4
src/main/resources/application-release.yml
Normal file
4
src/main/resources/application-release.yml
Normal file
@ -0,0 +1,4 @@
|
||||
server:
|
||||
port: 9420
|
||||
servlet:
|
||||
context-path: /server
|
||||
@ -1 +0,0 @@
|
||||
|
||||
3
src/main/resources/application.yml
Normal file
3
src/main/resources/application.yml
Normal file
@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
Loading…
Reference in New Issue
Block a user