一、准备工作,
1.github springcloud-config 中添加
2.deptConfig-dev.yml 内容
server:
port: 8001
mybatis:
type-aliases-package: com.linjia.springcloud.entity # 所有Entity别名类所在包
mapper-locations:
- classpath:mybatis/mapper/*.xml # mapper映射文件
spring:
profiles: dev #开发环境
application:
name: microservicecloud-config-dept-client
datasource:
type: com.alibaba.druid.pool.DruidDataSource # 当前数据源操作类型
driver-class-name: org.gjt.mm.mysql