-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAAAAapplication.yml
65 lines (58 loc) · 2.04 KB
/
AAAAapplication.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
--- #分割线 8000 定义为prod 8005端口定义dev
server:
port: 8000
servlet:
context-path: /
spring:
profiles: prod #定义为生产环境
datasource:
#引入druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/jtdb?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root
password: root
application: #定义服务名称
name: provider-user
eureka:
client:
service-url:
defaultZone: http://localhost:7000/eureka,http://localhost:7001/eureka,http://localhost:7002/eureka
instance:
instance-id: provider-user-8000 #定义微服务的名称
prefer-ip-address: true #是否显示IP和端口
#mybatis-plush配置
mybatis-plus:
type-aliases-package: com.jt.springcloud.pojo
mapper-locations: classpath:/mybatis/mappers/*.xml
configuration:
map-underscore-to-camel-case: true #自动开启驼峰规则映射
--- #8005端口定义dev
server:
port: 8005
servlet:
context-path: /
spring:
profiles: dev #定义为研发环境
datasource:
#引入druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/jtdb?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root
password: root
application: #定义服务名称
name: provider-user
eureka:
client:
service-url:
defaultZone: http://localhost:7000/eureka,http://localhost:7001/eureka,http://localhost:7002/eureka
instance:
instance-id: provider-user-8005 #定义微服务的名称
prefer-ip-address: true #是否显示IP和端口
#mybatis-plush配置
mybatis-plus:
type-aliases-package: com.jt.springcloud.pojo
mapper-locations: classpath:/mybatis/mappers/*.xml
configuration:
map-underscore-to-camel-case: true #自动开启驼峰规则映射