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