application.yml 2.78 KB
Newer Older
fangxinjiang's avatar
fangxinjiang committed
1 2
server:
  port: 4000
fangxinjiang's avatar
fangxinjiang committed
3 4 5
# 加解密根密码
jasypt:
  encryptor:
6
    password: yifu #根密码
fangxinjiang's avatar
fangxinjiang committed
7 8 9 10 11 12 13 14 15
# 暴露监控端点
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS
fangxinjiang's avatar
fangxinjiang committed
16

fangxinjiang's avatar
fangxinjiang committed
17 18 19 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:
    resource:
      loadBalanced: true
      token-info-uri: http://yifu-auth/oauth/check_token
fangxinjiang's avatar
fangxinjiang committed
36 37 38 39 40
    ignore: # 通用放行URL,服务个性化,请在对应配置文件覆盖
      urls:
        - /v3/api-docs
        - /actuator/**
        - /swagger-ui/**
huyuchen's avatar
huyuchen committed
41
        - /role/getRoleList
huyuchen's avatar
huyuchen committed
42
        - /user/updateUserAndDept
fangxinjiang's avatar
fangxinjiang committed
43 44


fangxinjiang's avatar
fangxinjiang committed
45 46 47 48 49 50 51 52

# 文件上传相关 支持阿里云、华为云、腾讯、minio
oss:
  endpoint: http://minio.yifu4cloud.com
  accessKey: lengleng
  secretKey: lengleng
  bucket-name: tmp
# swagger 配置
fangxinjiang's avatar
fangxinjiang committed
53 54 55 56 57 58 59 60
#swagger:
#  enabled: true
#  title: Yifu Swagger API
#  gateway: http://${GATEWAY_HOST:yifu-gateway}:${GATEWAY-PORT:9999}
#  token-url: ${swagger.gateway}/auth/oauth/token
#  services:
#    yifu-upms-biz: admin
#    yifu-codegen: gen
fangxinjiang's avatar
fangxinjiang committed
61
# Spring 相关
fangxinjiang's avatar
fangxinjiang committed
62 63 64
spring:
  application:
    name: @artifactId@
fangxinjiang's avatar
fangxinjiang committed
65 66 67
  #mvc:
  #  pathmatch:
  #    matching-strategy: ANT_PATH_MATCHER
fangxinjiang's avatar
fangxinjiang committed
68 69 70 71 72 73 74 75 76 77 78
#swagger 文档 https://springdoc.org/
### OpenAPI3 注解
#  OpenAPI 3	                            注解位置
#  @Tag(name = “接口类描述”)	                Controller 类上
#  @Operation(summary =“接口方法描述”)	    Controller 方法上
#  @Parameters	                            Controller 方法上
#  @Parameter(description=“参数描述”)	    Controller 方法上 @Parameters 里
#  @Parameter(description=“参数描述”)	    Controller 方法的参数上
#  @Parameter(hidden = true) 或 @Hidden	--
#  @Schema	                                DTO类上
#  @Schema	                                DTO属性上
fangxinjiang's avatar
fangxinjiang committed
79 80 81 82 83 84 85 86 87

springdoc:
  api-docs:
    #是否开启文档功能
    enabled: true
    #swagger后端请求地址
    path: /api-docs
  swagger-ui:
    #自定义swagger前端请求路径,输入http:127.0.0.1:8080/test会自动重定向到swagger页面
fangxinjiang's avatar
fangxinjiang committed
88
    path: /api
fangxinjiang's avatar
fangxinjiang committed
89 90 91 92 93 94 95 96 97 98 99 100
  #包扫描路径
  packages-to-scan: com.yifu.cloud.plus.v1.yifu.admin.controller
  #这里定义了两个分组,可定义多个,也可以不定义
  group-configs:
    #分组名
    #- group: admin
      #按路径匹配
    #  pathsToMatch: /admin/**
      #分组名
    - group: upms
      #按包路径匹配
      packagesToScan: com.yifu.cloud.plus.v1.yifu.admin.controller
huyuchen's avatar
huyuchen committed
101 102 103 104

hrms:
  id: HRBS
  secret: d8a3649587afe0fc2045741f84cd15221b8404f1ae5c3e9c8c301a4caba07d54