application.yml 3.64 KB
Newer Older
fangxinjiang's avatar
fangxinjiang committed
1 2
server:
  port: 3000
fangxinjiang's avatar
fangxinjiang committed
3 4 5 6
# 加解密根密码
jasypt:
  encryptor:
    password: pig #根密码
fangxinjiang's avatar
fangxinjiang committed
7 8
# 前端界面秘钥
gateway:
fangxinjiang's avatar
fangxinjiang committed
9
  encode-key: 'thanks,pig4cloud'
fangxinjiang's avatar
fangxinjiang committed
10 11 12 13 14 15 16 17 18
# 暴露监控端点
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS
fangxinjiang's avatar
fangxinjiang committed
19

fangxinjiang's avatar
fangxinjiang committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
# 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

# spring security 配置
security:
  oauth2:
fangxinjiang's avatar
fangxinjiang committed
36 37 38 39
    client:
      client-id: ENC(27v1agvAug87ANOVnbKdsw==)
      client-secret: ENC(VbnkopxrwgbFVKp+UxJ2pg==)
      scope: server
fangxinjiang's avatar
fangxinjiang committed
40 41 42 43 44 45 46 47
    resource:
      loadBalanced: true
      token-info-uri: http://yifu-auth/oauth/check_token
    # 通用放行URL,服务个性化,请在对应配置文件覆盖
    ignore:
      urls:
        - /v3/api-docs
        - /actuator/**
fangxinjiang's avatar
fangxinjiang committed
48
        - /swagger-ui/**
fangxinjiang's avatar
fangxinjiang committed
49

fangxinjiang's avatar
fangxinjiang committed
50

fangxinjiang's avatar
fangxinjiang committed
51
# Spring 相关
fangxinjiang's avatar
fangxinjiang committed
52 53 54
spring:
  application:
    name: @artifactId@
fangxinjiang's avatar
fangxinjiang committed
55 56 57
---
spring:
  config:
fangxinjiang's avatar
fangxinjiang committed
58 59
    #import:
    #  - classpath: application-test.yml
fangxinjiang's avatar
fangxinjiang committed
60 61
    activate:
      on-profile: test
fangxinjiang's avatar
fangxinjiang committed
62 63 64 65
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  redis:
fangxinjiang's avatar
fangxinjiang committed
66
    host: 127.0.0.1
fangxinjiang's avatar
fangxinjiang committed
67
    password: '@yf_2017'
fangxinjiang's avatar
fangxinjiang committed
68 69 70 71 72 73 74 75 76 77 78
  cloud:
    sentinel:
      eager: true
      transport:
        dashboard: yifu-sentinel:5003
  # 数据源
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: yf_zsk
hongguangwu's avatar
hongguangwu committed
79 80
    #url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
    url: jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
fangxinjiang's avatar
fangxinjiang committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94
  freemarker:
    allow-request-override: false
    allow-session-override: false
    cache: true
    charset: UTF-8
    check-template-location: true
    content-type: text/html
    enabled: true
    expose-request-attributes: false
    expose-session-attributes: false
    expose-spring-macro-helpers: true
    prefer-file-system-access: true
    suffix: .ftl
    template-loader-path: classpath:/templates/
fangxinjiang's avatar
fangxinjiang committed
95 96 97

---
spring:
fangxinjiang's avatar
fangxinjiang committed
98
  config:
fangxinjiang's avatar
fangxinjiang committed
99 100
    #import:
    #  - classpath: application-test.yml
fangxinjiang's avatar
fangxinjiang committed
101
    activate:
fangxinjiang's avatar
fangxinjiang committed
102 103 104 105 106
      on-profile: dev
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  redis:
fangxinjiang's avatar
fangxinjiang committed
107 108
    host: 192.168.1.65
    port: 22379
fangxinjiang's avatar
fangxinjiang committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
    password: '@yf_2017'
  cloud:
    sentinel:
      eager: true
      transport:
        dashboard: yifu-sentinel:5003
  # 数据源
  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/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
  freemarker:
    allow-request-override: false
    allow-session-override: false
    cache: true
    charset: UTF-8
    check-template-location: true
    content-type: text/html
    enabled: true
    expose-request-attributes: false
    expose-session-attributes: false
    expose-spring-macro-helpers: true
    prefer-file-system-access: true
    suffix: .ftl
    template-loader-path: classpath:/templates/