1. 讲师管理模块配置
service_edu
1.1 在service下面service_edu模块中创建配置文件
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/75fd020d4ace1daee5ad5a3ab62f0f93.png)
1.2 resources目录下创建文件 application.properties
server.port=8001
spring.application.name=service-edu
spring.profiles.active=dev
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://cdb-o6r75r3g.bj.tencentcdb.com:10015/guli?serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=zqw9797XXX
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
1.3 或者在resources目录下创建文件 application.yml
server:
port: 8001
spring:
application:
name: service-edu
profiles:
active: dev
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://cdb-o6r75r3g.bj.tencentcdb.com:10015/guli?serverTimezone=GMT%2B8
username: root
password: zqw9797xxx
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
☆