server: port: 8003 mybatis: config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径 type-aliases-package: cn.hhj.vo # 定义所有操作类的别名所在包 mapper-locations: # 所有的mapper映射文件 - classpath:mybatis/mapper/**/*.xml spring: datasource: type: com.alibaba.druid.pool.DruidDataSource # 配置当前要使用的数据源的操作类型 driver-class-name: com.mysql.cj.jdbc.Driver # 配置MySQL的驱动程序类 url: jdbc:mysql://101.132.148.119:3306/cloudDept8003 # 数据库连接地址 username: root # 数据库用户名 password: QingSe_1H # 数据库连接密码 filters: stat,wall,log4j # druid性能监控 dbcp2: # 进行数据库连接池的配置 min-idle: 5 # 数据库连接池的最小维持连接数 initial-size: 5 # 初始化提供的连接数 max-total: 5 # 最大的连接数 max-wait-millis: 200 # 等待连接获取的最大超时时间 application: name: microcloud-provider-dept #定义服务的名字 eureka: client: service-url: defaultZone: http://QingSe:hello@eureka-7001.com:7001/eureka,http://QingSe:hello@eureka-7002.com:7002/eureka,http://QingSe:hello@eureka-7003.com:7003/eureka #绑定到此地址中的eureka注册中心 instance: instance-id: dept-8003.com #信息列表时显示的主机名称 prefer-ip-address: true #访问路径地址更改为IP lease-expiration-duration-in-seconds: 5 #距离上一次心跳的时间,超过则认为是宕机 lease-renewal-interval-in-seconds: 2 #设置心跳的间隔时间 info: app.name: cn.hhj-microcloud #微服务名称 company.name: www.hhj.cn #公司网站 build.artifactId: $project.artifactId$ #项目名称 build.version: $project.version$ #项目版本