|
@@ -0,0 +1,84 @@
|
|
|
+server:
|
|
|
+ servlet:
|
|
|
+ context-path: /pdf-tech
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: pdf-tech
|
|
|
+ profiles:
|
|
|
+ active: @spring.profiles.active@
|
|
|
+ datasource:
|
|
|
+ name: mydb
|
|
|
+ url: ${jdbc.url}
|
|
|
+ username: ${jdbc.username}
|
|
|
+ password: ${jdbc.password}
|
|
|
+ # 使用druid数据源
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ driver-class-name: ${jdbc.driverClassName}
|
|
|
+ filters: stat
|
|
|
+ maxActive: 20
|
|
|
+ initialSize: 1
|
|
|
+ maxWait: 60000
|
|
|
+ minIdle: 1
|
|
|
+ timeBetweenEvictionRunsMillis: 60000
|
|
|
+ minEvictableIdleTimeMillis: 300000
|
|
|
+ validationQuery: select 'x'
|
|
|
+ testWhileIdle: true
|
|
|
+ testOnBorrow: false
|
|
|
+ testOnReturn: false
|
|
|
+ poolPreparedStatements: true
|
|
|
+ maxOpenPreparedStatements: 20
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 20MB
|
|
|
+ max-request-size: 20MB
|
|
|
+ #redis连接池
|
|
|
+ redis:
|
|
|
+ cluster:
|
|
|
+ nodes: ${redis.nodes}
|
|
|
+ max-redirects: ${redis.max-redirects}
|
|
|
+ password: ${redis.password}
|
|
|
+ lettuce:
|
|
|
+ pool:
|
|
|
+ max-active: ${redis.maxTotal}
|
|
|
+ max-wait: ${redis.socketTimeout}
|
|
|
+ max-idle: ${redis.maxIdle}
|
|
|
+ min-idle: ${redis.minIdle}
|
|
|
+ jackson:
|
|
|
+ date-format: yyyy-MM-dd HH:mm:ss
|
|
|
+ time-zone: GMT+8
|
|
|
+
|
|
|
+#不共享一级缓存
|
|
|
+mybatis:
|
|
|
+ configuration:
|
|
|
+ local-cache-scope: statement
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+ # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+ #构建数据对象映射文件
|
|
|
+ mapper-locations: classpath:sqlmap/**/*.xml
|
|
|
+ type-aliases-package: cn.kdan.pdf.tech.core.model
|
|
|
+
|
|
|
+≈:
|
|
|
+ helperDialect: postgresql
|
|
|
+ reasonable: true
|
|
|
+ supportMethodsArguments: true
|
|
|
+
|
|
|
+swagger:
|
|
|
+ base-package: cn.kdan.pdf.tech.core.controller
|
|
|
+ description: pdf-tech api test
|
|
|
+ title: pdf-tech api test
|
|
|
+
|
|
|
+logging:
|
|
|
+ level:
|
|
|
+ cn.kdan.pdf.tech.core.mapper: info
|
|
|
+
|
|
|
+cors:
|
|
|
+ allow-headers: "X-Requested-With,Content-Type,Cookie,Accept,authorization,Authorization,credential,keyword,x-auth-token,iv,jsonFlag,timeStamp,random"
|
|
|
+ allow-methods: "*"
|
|
|
+ allow-expose: "x-auth-token,Content-Disposition"
|
|
|
+ allow-credentials: "true"
|
|
|
+ allow-origins: "*"
|
|
|
+ allow-max-age: "3600"
|
|
|
+httpMatchers:
|
|
|
+ request: "/login,/logout,/vppMember/resetPassword,/oauth/**,/auth/**,/vppMember/create,/vppTeam/confirmTeamMember,/static/images/**"
|
|
|
+ web: "/hystrix.stream,/webjars/**,/resources/**,/swagger-ui.html,/swagger-resources/**,/v2/api-docs,/static/images/**"
|
|
|
+
|