打开Nacos管理界面,添加新的配置文件:http://ip:8848/nacos
命名空间选择learning-online-dev
创建认证授权工程配置:media-api-dev.yaml
ID:auth-service-dev.yaml
Group:learning-online-project
描述:统一认证中心服务配置
配置内容:
server:
servlet:
context-path: /auth
port: 63070
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql:///lo_user?useSSL=false&serverTimezone=UTC&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: root
password: xxxxxx
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
type-aliases-package: com.swx.ucenter.model.po
wechat:
appid: wxed9954c01bb89b47
secret: a7482517235173ddb4083788de60b90e