找到Nacos配置列表,选择开发环境learning-online-dev
创建系统管理工程配置:system-api-dev.yaml
ID:system-api-dev.yaml
Group:learning-online-project
描述:学成在线系统管理微服务开发环境配置
配置内容:
system-api-dev.yaml server:
port: 63110
servlet:
context-path: /system
spring:
cloud:
config:
# 本地优先
override-none: true
创建系统管理工程配置:system-service-dev.yaml
ID:system-service-dev.yaml
Group:learning-online-project
配置内容:
system-service-dev.yaml spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql:///lo_system?useSSL=false&serverTimezone=UTC&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: root
password: 123456
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
type-aliases-package: com.swx.system.model.po