-
Notifications
You must be signed in to change notification settings - Fork 0
/
application-provider-config.yml
66 lines (57 loc) · 1.53 KB
/
application-provider-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 配置dev环境
server:
port: 8084
spring:
profiles: dev
# 指定当前微服务对外暴露的名称
application:
name: abcmsc-provider-depart
# 配置spring-data-jpa
jpa:
# 指定是否在Spring容器启动时创建表,默认为false
generate-ddl: true
# 指定是否在控制台显示SQL语句,默认为false
show-sql: true
# 指定应用重启时不重新更新表
hibernate:
ddl-auto: none
# 配置数据源
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql:///test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC
username: root
password: sqlpass
eureka:
# 指定eureka服务中心
client:
service-url:
defaultZone: http://eureka8400.com:8400/eureka
---
# 配置test环境
server:
port: 8085
spring:
profiles: test
# 指定当前微服务对外暴露的名称
application:
name: abcmsc-provider-depart
# 配置spring-data-jpa
jpa:
# 指定是否在Spring容器启动时创建表,默认为false
generate-ddl: true
# 指定是否在控制台显示SQL语句,默认为false
show-sql: true
# 指定应用重启时不重新更新表
hibernate:
ddl-auto: none
# 配置数据源
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql:///test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC
username: root
password: sqlpass
eureka:
# 指定eureka服务中心
client:
service-url:
defaultZone: http://eureka8500.com:8500/eureka