🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ server: port: 9094 spring: application: name: supergo-manager datasource: # 连接池配置 # 链接地址 url: jdbc:mysql://localhost:3306/supergo?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai # # 用户名 username: root # 密码 password: 123 # 驱动class名 driver-class-name: com.mysql.cj.jdbc.Driver # 使用的连接池类型 -> Druid(阿里巴巴) type: com.alibaba.druid.pool.DruidDataSource druid: initial-size: 5 min-idle: 5 #空闲链接 max-active: 20 max-wait: 1000 servlet: multipart: max-file-size: 5MB # 文件上传大小限制 boot: admin: client: url: http://127.0.0.1:9876 #监控中心配置 eureka: client: service-url: defaultZone: http://127.0.0.1:10086/eureka instance: prefer-ip-address: true ip-address: 127.0.0.1 instance-id: ${eureka.instance.ip-address}.${server.port} lease-renewal-interval-in-seconds: 3 lease-expiration-duration-in-seconds: 10 health-check-url-path: /api/actuator/health #网关设置了根路径,默认监控路径发生了变化 mybatis: type-aliases-package: com.supergo.pojo management: endpoint: shutdown: enabled: true #开启端点 health: show-details: always endpoints: web: exposure: include: "*" ~~~