2020-08-06 21:13:21 +08:00
|
|
|
spring:
|
|
|
|
# 数据源配置项
|
|
|
|
datasource:
|
2021-10-06 22:50:17 +08:00
|
|
|
url: jdbc:mysql://localhost:3306/mall_trade?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
|
2020-08-06 21:13:21 +08:00
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
username: root
|
2021-10-06 22:50:17 +08:00
|
|
|
password: zhuyang
|
2020-08-06 21:13:21 +08:00
|
|
|
# Spring Cloud 配置项
|
|
|
|
cloud:
|
|
|
|
nacos:
|
|
|
|
# Spring Cloud Nacos Discovery 配置项
|
|
|
|
discovery:
|
2021-10-06 22:50:17 +08:00
|
|
|
server-addr: localhost:8848 # Nacos 服务器地址
|
2020-08-06 21:13:21 +08:00
|
|
|
namespace: dev # Nacos 命名空间
|
2020-11-26 18:40:07 +08:00
|
|
|
# # Spring 主应用配置
|
|
|
|
# main:
|
|
|
|
# lazy-initialization: true # 开启延迟加载,保证本地开发的性能
|
2020-08-06 21:13:21 +08:00
|
|
|
|
|
|
|
# Dubbo 配置项
|
|
|
|
dubbo:
|
|
|
|
# Dubbo 注册中心
|
|
|
|
registry:
|
2021-10-06 22:50:17 +08:00
|
|
|
# address: spring-cloud://localhost:8848 # 指定 Dubbo 服务注册中心的地址
|
|
|
|
address: nacos://localhost:8848?namespace=dev # 指定 Dubbo 服务注册中心的地址
|
2020-08-06 21:13:21 +08:00
|
|
|
# Dubbo 服务提供者的配置
|
|
|
|
provider:
|
|
|
|
tag: ${DUBBO_TAG} # Dubbo 路由分组
|
2020-11-30 18:47:57 +08:00
|
|
|
|
|
|
|
# MyBatis Plus 配置
|
|
|
|
mybatis-plus:
|
|
|
|
configuration:
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 本地开发环境下,多打印 SQL 到控制台
|