添加代码示例springboot-mongodb
This commit is contained in:
45
springboot-mongodb/src/main/resources/application.yml
Normal file
45
springboot-mongodb/src/main/resources/application.yml
Normal file
@ -0,0 +1,45 @@
|
||||
##########################################################
|
||||
################## 所有profile共有的配置 #################
|
||||
##########################################################
|
||||
|
||||
################### spring配置 ###################
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
|
||||
---
|
||||
|
||||
#####################################################################
|
||||
######################## 开发环境profile ##########################
|
||||
#####################################################################
|
||||
spring:
|
||||
profiles: dev
|
||||
data:
|
||||
mongodb:
|
||||
uri: mongodb://xiongneng:123456@localhost:27017/test
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: INFO
|
||||
com:
|
||||
xncoding: DEBUG
|
||||
file: E:/logs/app.log
|
||||
|
||||
---
|
||||
|
||||
#####################################################################
|
||||
######################## 测试环境profile ##########################
|
||||
#####################################################################
|
||||
|
||||
spring:
|
||||
profiles: test
|
||||
data:
|
||||
mongodb:
|
||||
uri: mongodb://xiongneng:123456@localhost:27017/test
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: INFO
|
||||
com:
|
||||
xncoding: DEBUG
|
||||
file: /var/logs/app.log
|
||||
Reference in New Issue
Block a user