server: port: 7002 # 加解密根密码 jasypt: encryptor: password: pig #根密码 # 暴露监控端点 management: endpoints: web: exposure: include: "*" endpoint: health: show-details: ALWAYS ## spring security 配置 security: oauth2: client: client-id: ENC(27v1agvAug87ANOVnbKdsw==) client-secret: ENC(VbnkopxrwgbFVKp+UxJ2pg==) scope: server resource: loadBalanced: true token-info-uri: http://yifu-auth/oauth/check_token # mybaits-plus配置 mybatis-plus: mapper-locations: classpath:/mapper/*Mapper.xml global-config: banner: false db-config: id-type: auto table-underline: true logic-delete-value: 1 logic-not-delete-value: 0 configuration: map-underscore-to-camel-case: true # 直接放行URL ignore: urls: - /v2/api-docs - /actuator/** spring: application: name: @artifactId@ --- # 数据源配置 spring: redis: host: 127.0.0.1 password: '@yf_2017' datasource: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver username: root password: yf_zsk url: jdbc:mysql://192.168.1.65:22306/consumer?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true config: activate: on-profile: test --- # 数据源配置 spring: redis: host: 192.168.1.65 port: 22379 password: '@yf_2017' datasource: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver username: root password: yf_zsk url: jdbc:mysql://192.168.1.65:22306/consumer?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true config: activate: on-profile: dev