修改网关bug
This commit is contained in:
parent
0488bb535f
commit
da376dd3c7
@ -142,6 +142,12 @@
|
|||||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!--配置中心-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -1,76 +1,76 @@
|
|||||||
server:
|
#server:
|
||||||
port: 9002
|
# port: 9002
|
||||||
|
#
|
||||||
spring:
|
#spring:
|
||||||
application:
|
# application:
|
||||||
name: xdclass-coupon-service
|
# name: xdclass-coupon-service
|
||||||
|
#
|
||||||
cloud:
|
# cloud:
|
||||||
#注册中心地址
|
# #注册中心地址
|
||||||
nacos:
|
# nacos:
|
||||||
discovery:
|
# discovery:
|
||||||
server-addr: 8.134.32.140:8848
|
# server-addr: 8.134.32.140:8848
|
||||||
|
#
|
||||||
#消息队列
|
# #消息队列
|
||||||
rabbitmq:
|
# rabbitmq:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
port: 5672
|
# port: 5672
|
||||||
virtual-host: /
|
# virtual-host: /
|
||||||
password: jieyuu
|
# password: jieyuu
|
||||||
username: admin
|
# username: admin
|
||||||
#开启手动确认消息
|
# #开启手动确认消息
|
||||||
listener:
|
# listener:
|
||||||
simple:
|
# simple:
|
||||||
acknowledge-mode: manual
|
# acknowledge-mode: manual
|
||||||
|
#
|
||||||
#数据库配置
|
# #数据库配置
|
||||||
datasource:
|
# datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://106.52.88.120:3306/xdclass_coupon?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
# url: jdbc:mysql://106.52.88.120:3306/xdclass_coupon?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
# username: root
|
||||||
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
# password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
||||||
redis:
|
# redis:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
password: 123456
|
# password: 123456
|
||||||
port: 8000
|
# port: 8000
|
||||||
|
#
|
||||||
#配置plus打印sql日志
|
##配置plus打印sql日志
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
#
|
||||||
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
##设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
||||||
logging:
|
#logging:
|
||||||
level:
|
# level:
|
||||||
root: INFO
|
# root: INFO
|
||||||
|
#
|
||||||
|
#
|
||||||
#seata配置
|
##seata配置
|
||||||
#seata:
|
##seata:
|
||||||
# tx-service-group: ${spring.application.name}-group
|
## tx-service-group: ${spring.application.name}-group
|
||||||
# service:
|
## service:
|
||||||
# grouplist:
|
## grouplist:
|
||||||
# xdclass: 106.52.88.120:8091
|
## xdclass: 106.52.88.120:8091
|
||||||
# vgroup-mapping:
|
## vgroup-mapping:
|
||||||
# xdclass-coupon-service-group: xdclass
|
## xdclass-coupon-service-group: xdclass
|
||||||
|
#
|
||||||
|
#
|
||||||
#自定义消息队列配置,发送锁定库存消息->延迟exchange->lock.queue->死信exchange->release.queue
|
##自定义消息队列配置,发送锁定库存消息->延迟exchange->lock.queue->死信exchange->release.queue
|
||||||
mqconfig:
|
#mqconfig:
|
||||||
#延迟队列,不能被监听消费
|
# #延迟队列,不能被监听消费
|
||||||
coupon_release_delay_queue: coupon.release.delay.queue
|
# coupon_release_delay_queue: coupon.release.delay.queue
|
||||||
|
#
|
||||||
#延迟队列的消息过期后转发的队列
|
# #延迟队列的消息过期后转发的队列
|
||||||
coupon_release_queue: coupon.release.queue
|
# coupon_release_queue: coupon.release.queue
|
||||||
|
#
|
||||||
#交换机
|
# #交换机
|
||||||
coupon_event_exchange: coupon.event.exchange
|
# coupon_event_exchange: coupon.event.exchange
|
||||||
|
#
|
||||||
#进入延迟队列的路由key
|
# #进入延迟队列的路由key
|
||||||
coupon_release_delay_routing_key: coupon.release.delay.routing.key
|
# coupon_release_delay_routing_key: coupon.release.delay.routing.key
|
||||||
|
#
|
||||||
#消息过期,进入释放死信队列的key
|
# #消息过期,进入释放死信队列的key
|
||||||
coupon_release_routing_key: coupon.release.routing.key
|
# coupon_release_routing_key: coupon.release.routing.key
|
||||||
|
#
|
||||||
#消息过期时间,毫秒,测试改为15秒
|
# #消息过期时间,毫秒,测试改为15秒
|
||||||
ttl: 15000
|
# ttl: 15000
|
11
xdclass-coupon-service/src/main/resources/bootstrap.yml
Normal file
11
xdclass-coupon-service/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: xdclass-coupon-service
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
config:
|
||||||
|
server-addr: 8.134.32.140:8848
|
||||||
|
file-extension: yaml #文件拓展格式
|
||||||
|
|
||||||
|
profiles:
|
||||||
|
active: dev
|
@ -1,58 +1,58 @@
|
|||||||
server:
|
#server:
|
||||||
port: 8889
|
# port: 8889
|
||||||
|
#
|
||||||
spring:
|
#spring:
|
||||||
application:
|
# application:
|
||||||
name: api-gateway
|
# name: api-gateway
|
||||||
cloud:
|
# cloud:
|
||||||
#注册中心地址
|
# #注册中心地址
|
||||||
nacos:
|
# nacos:
|
||||||
discovery:
|
# discovery:
|
||||||
server-addr: 8.134.32.140:8848
|
# server-addr: 8.134.32.140:8848
|
||||||
|
#
|
||||||
|
#
|
||||||
gateway:
|
# gateway:
|
||||||
routes: #数组形式
|
# routes: #数组形式
|
||||||
- id: product-service #商品服务 路由唯一标识
|
# - id: product-service #商品服务 路由唯一标识
|
||||||
uri: lb://xdclass-product-service #从nocas进行转发
|
# uri: lb://xdclass-product-service #从nocas进行转发
|
||||||
order: 1 #优先级,数字越小优先级越高
|
# order: 1 #优先级,数字越小优先级越高
|
||||||
predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
# predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
||||||
- Path=/product-server/**
|
# - Path=/product-server/**
|
||||||
filters: #过滤器,请求在传递过程中通过过滤器修改
|
# filters: #过滤器,请求在传递过程中通过过滤器修改
|
||||||
- StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
# - StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
||||||
|
#
|
||||||
- id: user-service #用户服务 路由唯一标识
|
# - id: user-service #用户服务 路由唯一标识
|
||||||
uri: lb://xdclass-user-service #从nocas进行转发
|
# uri: lb://xdclass-user-service #从nocas进行转发
|
||||||
order: 2 #优先级,数字越小优先级越高
|
# order: 2 #优先级,数字越小优先级越高
|
||||||
predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
# predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
||||||
- Path=/user-service/**
|
# - Path=/user-service/**
|
||||||
filters: #过滤器,请求在传递过程中通过过滤器修改
|
# filters: #过滤器,请求在传递过程中通过过滤器修改
|
||||||
- StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
# - StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
||||||
|
#
|
||||||
- id: coupon-service #商品服务 路由唯一标识
|
# - id: coupon-service #商品服务 路由唯一标识
|
||||||
uri: lb://xdclass-coupon-service #从nocas进行转发
|
# uri: lb://xdclass-coupon-service #从nocas进行转发
|
||||||
order: 3 #优先级,数字越小优先级越高
|
# order: 3 #优先级,数字越小优先级越高
|
||||||
predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
# predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
||||||
- Path=/coupon-server/**
|
# - Path=/coupon-server/**
|
||||||
filters: #过滤器,请求在传递过程中通过过滤器修改
|
# filters: #过滤器,请求在传递过程中通过过滤器修改
|
||||||
- StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
# - StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
||||||
|
#
|
||||||
- id: order-service #商品服务 路由唯一标识
|
# - id: order-service #商品服务 路由唯一标识
|
||||||
uri: lb://xdclass-order-service #从nocas进行转发
|
# uri: lb://xdclass-order-service #从nocas进行转发
|
||||||
order: 3 #优先级,数字越小优先级越高
|
# order: 3 #优先级,数字越小优先级越高
|
||||||
predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
# predicates: #断言 配置哪个路径才转发,前端访问路径统一加上XXX-server,网关判断转发对应的服务,如果是回调业务记得修改
|
||||||
- Path=/order-server/**
|
# - Path=/order-server/**
|
||||||
filters: #过滤器,请求在传递过程中通过过滤器修改
|
# filters: #过滤器,请求在传递过程中通过过滤器修改
|
||||||
- StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
# - StripPrefix=1 #去掉第一层前缀,转发给后续的路径
|
||||||
|
#
|
||||||
#开启网关拉取nacos的服务
|
# #开启网关拉取nacos的服务
|
||||||
discovery:
|
# discovery:
|
||||||
locator:
|
# locator:
|
||||||
enabled: true
|
# enabled: true
|
||||||
|
#
|
||||||
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
##设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
||||||
logging:
|
#logging:
|
||||||
level:
|
# level:
|
||||||
root: INFO
|
# root: INFO
|
||||||
#nacos日志问题
|
# #nacos日志问题
|
||||||
com.alibaba.nacos.client.config.impl: WARN
|
# com.alibaba.nacos.client.config.impl: WARN
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
spring:
|
spring:
|
||||||
|
application:
|
||||||
|
name: api-gateway
|
||||||
cloud:
|
cloud:
|
||||||
#注册中心地址
|
#注册中心地址
|
||||||
nacos:
|
nacos:
|
||||||
config:
|
config:
|
||||||
server-addr: 8.134.32.140:8848
|
server-addr: 8.134.32.140:8848
|
||||||
|
file-extension: yaml #文件拓展格式
|
||||||
|
profiles:
|
||||||
|
active: dev
|
||||||
|
@ -1,72 +1,72 @@
|
|||||||
server:
|
#server:
|
||||||
port: 9004
|
# port: 9004
|
||||||
|
#
|
||||||
spring:
|
#spring:
|
||||||
application:
|
# application:
|
||||||
name: xdclass-order-service
|
# name: xdclass-order-service
|
||||||
cloud:
|
# cloud:
|
||||||
#注册中心地址
|
# #注册中心地址
|
||||||
nacos:
|
# nacos:
|
||||||
discovery:
|
# discovery:
|
||||||
server-addr: 8.134.32.140:8848
|
# server-addr: 8.134.32.140:8848
|
||||||
|
#
|
||||||
#消息队列
|
# #消息队列
|
||||||
rabbitmq:
|
# rabbitmq:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
port: 5672
|
# port: 5672
|
||||||
virtual-host: /
|
# virtual-host: /
|
||||||
password: jieyuu
|
# password: jieyuu
|
||||||
username: admin
|
# username: admin
|
||||||
#开启手动确认消息
|
# #开启手动确认消息
|
||||||
listener:
|
# listener:
|
||||||
simple:
|
# simple:
|
||||||
acknowledge-mode: manual
|
# acknowledge-mode: manual
|
||||||
|
#
|
||||||
#数据库配置
|
# #数据库配置
|
||||||
datasource:
|
# datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://106.52.88.120:3306/xdclass_order?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
# url: jdbc:mysql://106.52.88.120:3306/xdclass_order?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
# username: root
|
||||||
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
# password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
||||||
redis:
|
# redis:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
password: 123456
|
# password: 123456
|
||||||
port: 8000
|
# port: 8000
|
||||||
|
#
|
||||||
#配置plus打印sql日志
|
##配置plus打印sql日志
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
#
|
||||||
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
##设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
||||||
logging:
|
#logging:
|
||||||
level:
|
# level:
|
||||||
root: INFO
|
# root: INFO
|
||||||
|
#
|
||||||
#自定义消息队列配置,发送锁定库存消息-》延迟exchange-》lock.queue-》死信exchange-》release.queue
|
##自定义消息队列配置,发送锁定库存消息-》延迟exchange-》lock.queue-》死信exchange-》release.queue
|
||||||
mqconfig:
|
#mqconfig:
|
||||||
#延迟队列,不能被监听消费
|
# #延迟队列,不能被监听消费
|
||||||
order_close_delay_queue: order.close.delay.queue
|
# order_close_delay_queue: order.close.delay.queue
|
||||||
|
#
|
||||||
#延迟队列的消息过期后转发的队列
|
# #延迟队列的消息过期后转发的队列
|
||||||
order_close_queue: order.close.queue
|
# order_close_queue: order.close.queue
|
||||||
|
#
|
||||||
#交换机
|
# #交换机
|
||||||
order_event_exchange: order.event.exchange
|
# order_event_exchange: order.event.exchange
|
||||||
|
#
|
||||||
#进入延迟队列的路由key
|
# #进入延迟队列的路由key
|
||||||
order_close_delay_routing_key: order.close.delay.routing.key
|
# order_close_delay_routing_key: order.close.delay.routing.key
|
||||||
|
#
|
||||||
#消息过期,进入释放队列的key,进入死信队列的key
|
# #消息过期,进入释放队列的key,进入死信队列的key
|
||||||
order_close_routing_key: order.close.routing.key
|
# order_close_routing_key: order.close.routing.key
|
||||||
|
#
|
||||||
#消息过期时间,毫秒,测试改为15秒
|
# #消息过期时间,毫秒,测试改为15秒
|
||||||
ttl: 900000
|
# ttl: 900000
|
||||||
|
#
|
||||||
# 支付宝配置
|
## 支付宝配置
|
||||||
alipay:
|
#alipay:
|
||||||
# 支付成功的跳转页面
|
# # 支付成功的跳转页面
|
||||||
success_return_url: http://jieyuu.net
|
# success_return_url: http://jieyuu.net
|
||||||
# 支付宝通知回调接口
|
# # 支付宝通知回调接口
|
||||||
callback_url: http://8.134.32.140:13001/api/callback/order/v1/alipay
|
# callback_url: http://8.134.32.140:13001/order-server/api/callback/order/v1/alipay
|
||||||
|
#
|
||||||
|
11
xdclass-order-service/src/main/resources/bootstrap.yml
Normal file
11
xdclass-order-service/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: xdclass-order-service
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
config:
|
||||||
|
server-addr: 8.134.32.140:8848
|
||||||
|
file-extension: yaml #文件拓展格式
|
||||||
|
|
||||||
|
profiles:
|
||||||
|
active: dev
|
@ -1,65 +1,65 @@
|
|||||||
server:
|
#server:
|
||||||
port: 9003
|
# port: 9003
|
||||||
|
#
|
||||||
spring:
|
#spring:
|
||||||
application:
|
# application:
|
||||||
name: xdclass-product-service
|
# name: xdclass-product-service
|
||||||
cloud:
|
# cloud:
|
||||||
#注册中心地址
|
# #注册中心地址
|
||||||
nacos:
|
# nacos:
|
||||||
discovery:
|
# discovery:
|
||||||
server-addr: 8.134.32.140:8848
|
# server-addr: 8.134.32.140:8848
|
||||||
|
#
|
||||||
#消息队列
|
# #消息队列
|
||||||
rabbitmq:
|
# rabbitmq:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
port: 5672
|
# port: 5672
|
||||||
virtual-host: /
|
# virtual-host: /
|
||||||
password: jieyuu
|
# password: jieyuu
|
||||||
username: admin
|
# username: admin
|
||||||
#开启手动确认消息
|
# #开启手动确认消息
|
||||||
listener:
|
# listener:
|
||||||
simple:
|
# simple:
|
||||||
acknowledge-mode: manual
|
# acknowledge-mode: manual
|
||||||
|
#
|
||||||
#数据库配置
|
# #数据库配置
|
||||||
datasource:
|
# datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://106.52.88.120:3306/xdclass_product?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
# url: jdbc:mysql://106.52.88.120:3306/xdclass_product?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
# username: root
|
||||||
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
# password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
||||||
redis:
|
# redis:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
password: 123456
|
# password: 123456
|
||||||
port: 8000
|
# port: 8000
|
||||||
|
#
|
||||||
#配置plus打印sql日志
|
##配置plus打印sql日志
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
#
|
||||||
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
##设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
||||||
logging:
|
#logging:
|
||||||
level:
|
# level:
|
||||||
root: INFO
|
# root: INFO
|
||||||
|
#
|
||||||
|
#
|
||||||
#自定义消息队列配置,发送锁定库存消息-》延迟exchange-》lock.queue-》死信exchange-》release.queue
|
##自定义消息队列配置,发送锁定库存消息-》延迟exchange-》lock.queue-》死信exchange-》release.queue
|
||||||
mqconfig:
|
#mqconfig:
|
||||||
#延迟队列,不能被监听消费
|
# #延迟队列,不能被监听消费
|
||||||
stock_release_delay_queue: stock.release.delay.queue
|
# stock_release_delay_queue: stock.release.delay.queue
|
||||||
|
#
|
||||||
#延迟队列的消息过期后转发的队列
|
# #延迟队列的消息过期后转发的队列
|
||||||
stock_release_queue: stock.release.queue
|
# stock_release_queue: stock.release.queue
|
||||||
|
#
|
||||||
#交换机
|
# #交换机
|
||||||
stock_event_exchange: stock.event.exchange
|
# stock_event_exchange: stock.event.exchange
|
||||||
|
#
|
||||||
#进入延迟队列的路由key
|
# #进入延迟队列的路由key
|
||||||
stock_release_delay_routing_key: stock.release.delay.routing.key
|
# stock_release_delay_routing_key: stock.release.delay.routing.key
|
||||||
|
#
|
||||||
#消息过期,进入释放队列的key
|
# #消息过期,进入释放队列的key
|
||||||
stock_release_routing_key: stock.release.routing.key
|
# stock_release_routing_key: stock.release.routing.key
|
||||||
|
#
|
||||||
#消息过期时间,毫秒,测试改为15分钟
|
# #消息过期时间,毫秒,测试改为15分钟
|
||||||
ttl: 300000
|
# ttl: 300000
|
||||||
|
11
xdclass-product-service/src/main/resources/bootstrap.yml
Normal file
11
xdclass-product-service/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: xdclass-product-service
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
config:
|
||||||
|
server-addr: 8.134.32.140:8848
|
||||||
|
file-extension: yaml #文件拓展格式
|
||||||
|
|
||||||
|
profiles:
|
||||||
|
active: dev
|
@ -1,72 +1,72 @@
|
|||||||
server:
|
#server:
|
||||||
port: 9001
|
# port: 9001
|
||||||
|
#
|
||||||
spring:
|
#spring:
|
||||||
application:
|
# application:
|
||||||
name: xdclass-user-service
|
# name: xdclass-user-service
|
||||||
cloud:
|
# cloud:
|
||||||
#注册中心地址
|
# #注册中心地址
|
||||||
nacos:
|
# nacos:
|
||||||
discovery:
|
# discovery:
|
||||||
server-addr: 8.134.32.140:8848
|
# server-addr: 8.134.32.140:8848
|
||||||
|
#
|
||||||
#消息队列
|
# #消息队列
|
||||||
rabbitmq:
|
# rabbitmq:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
port: 5672
|
# port: 5672
|
||||||
virtual-host: /
|
# virtual-host: /
|
||||||
password: jieyuu
|
# password: jieyuu
|
||||||
username: admin
|
# username: admin
|
||||||
#开启手动确认消息
|
# #开启手动确认消息
|
||||||
listener:
|
# listener:
|
||||||
simple:
|
# simple:
|
||||||
acknowledge-mode: manual
|
# acknowledge-mode: manual
|
||||||
|
#
|
||||||
#数据库配置
|
# #数据库配置
|
||||||
datasource:
|
# datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://106.52.88.120:3306/xdclass_user?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
# url: jdbc:mysql://106.52.88.120:3306/xdclass_user?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
# username: root
|
||||||
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
# password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
||||||
redis:
|
# redis:
|
||||||
host: 106.52.88.120
|
# host: 106.52.88.120
|
||||||
password: 123456
|
# password: 123456
|
||||||
port: 8000
|
# port: 8000
|
||||||
mail:
|
# mail:
|
||||||
host: smtp.163.com #发送邮件服务器
|
# host: smtp.163.com #发送邮件服务器
|
||||||
username: wa787966@163.com #发送邮件的邮箱地址
|
# username: wa787966@163.com #发送邮件的邮箱地址
|
||||||
password: QIVDMITCCGMDFFBO #客户端授权码,不是邮箱密码,网易的是自己设置的
|
# password: QIVDMITCCGMDFFBO #客户端授权码,不是邮箱密码,网易的是自己设置的
|
||||||
from: wa787966@163.com # 发送邮件的地址,和上面username一致
|
# from: wa787966@163.com # 发送邮件的地址,和上面username一致
|
||||||
properties.mail.smtp:
|
# properties.mail.smtp:
|
||||||
starttls:
|
# starttls:
|
||||||
enable: true
|
# enable: true
|
||||||
required: true
|
# required: true
|
||||||
ssl.enable: true
|
# ssl.enable: true
|
||||||
default-encoding: utf-8
|
# default-encoding: utf-8
|
||||||
|
#
|
||||||
#配置plus打印sql日志
|
##配置plus打印sql日志
|
||||||
mybatis-plus:
|
#mybatis-plus:
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
#
|
||||||
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
##设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
||||||
logging:
|
#logging:
|
||||||
level:
|
# level:
|
||||||
root: INFO
|
# root: INFO
|
||||||
|
#
|
||||||
|
#
|
||||||
minio:
|
#minio:
|
||||||
endpoint: http://106.52.88.120:9000
|
# endpoint: http://106.52.88.120:9000
|
||||||
access-key-id: Y7sQYzzcBob67Wu7agLK
|
# access-key-id: Y7sQYzzcBob67Wu7agLK
|
||||||
access-key-secret: PXT1QKl0U23VMMKPmCbDZvGaJiw23AhQWpd4RlO9
|
# access-key-secret: PXT1QKl0U23VMMKPmCbDZvGaJiw23AhQWpd4RlO9
|
||||||
bucketName: xdclass-shop-image
|
# bucketName: xdclass-shop-image
|
||||||
|
#
|
||||||
|
#
|
||||||
#seata配置
|
##seata配置
|
||||||
#seata:
|
##seata:
|
||||||
# tx-service-group: ${spring.application.name}-group
|
## tx-service-group: ${spring.application.name}-group
|
||||||
# service:
|
## service:
|
||||||
# grouplist:
|
## grouplist:
|
||||||
# xdclass: 106.52.88.120:8091
|
## xdclass: 106.52.88.120:8091
|
||||||
# vgroup-mapping:
|
## vgroup-mapping:
|
||||||
# xdclass-user-service-group: xdclass
|
## xdclass-user-service-group: xdclass
|
11
xdclass-user-service/src/main/resources/bootstrap.yml
Normal file
11
xdclass-user-service/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: xdclass-user-service
|
||||||
|
cloud:
|
||||||
|
#注册中心地址
|
||||||
|
nacos:
|
||||||
|
config:
|
||||||
|
server-addr: 8.134.32.140:8848
|
||||||
|
file-extension: yaml #文件拓展格式
|
||||||
|
profiles:
|
||||||
|
active: dev
|
Loading…
Reference in New Issue
Block a user