123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- server:
- port: 9095
- servlet:
- encoding:
- charset: UTF-8
- force: true
- enabled: true
- spring:
- profiles:
- active: dev
- application:
- name: aj-report
- servlet:
- multipart:
- max-file-size: 10MB #上传图片大小限制为10MB
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- messages:
- basename: i18n/messages
- datasource:
- url: jdbc:mysql://10.108.26.197:3306/aj_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
- username: root
- password: appuser@anji
- driver-class-name: com.mysql.cj.jdbc.Driver
- type: com.alibaba.druid.pool.DruidDataSource
- #数据源连接池配置
- druid:
- initial-size: 50
- min-idle: 50
- max-active: 100
- # 获取连接等待超时的时间
- max-wait: 5000
- # 配置间隔多久才进行一次检测
- time-between-eviction-runs-millis: 60000
- # 配置一个连接在池中最小生存时间
- min-evictable-idle-time-millis: 300000
- validation-query: select 1
- # 获取连接时执行检测,每次检测timeBetweenEvictionRunsMillis,空闲时间超过了minEvictableIdleTimeMillis则会直接剔除
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- # 是否开启PSCache,PSCache对支持游标的数据库性能提升巨大,oracle建议开启,mysql下建议关闭
- pool-prepared-statements: false
- max-pool-prepared-statement-per-connection-size: 50
- filters: stat,wall
- connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
- use-global-data-source-stat: true
- #StatViewServlet配置
- stat-view-servlet.enabled: false
- #注意:账号密码需修改
- stat-view-servlet.login-username: admin
- stat-view-servlet.login-password: admin
- stat-view-servlet.allow: ""
- connectionErrorRetryAttempts: 3 # 连接出错后再尝试连接三次
- breakAfterAcquireFailure: true # 数据库服务宕机自动重连机制
- timeBetweenConnectErrorMillis: 300000 # 连接出错后重试时间间隔
- #如果要使用redis,请参考report-core目录下的README.md文件中写的进行调整
- # redis:
- # host: 127.0.0.1
- # port: 6379
- # password: root
- # database: 1
- flyway:
- enabled: false #是否开启flyway(自动执行sql脚本),默认false
- baseline-on-migrate: true
- #数据库连接配置
- url: ${spring.datasource.url}
- user: ${spring.datasource.username}
- password: ${spring.datasource.password}
- placeholder-replacement: false
- init-sqls:
- - CREATE DATABASE IF NOT EXISTS `aj_report` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
- gaea:
- subscribes:
- oss: #文件存储 都配置的情况下优先级minio->amazonS3->nfs
- enabled: true
- ##允许上传的文件后缀
- file-type-while-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi|.jpeg|.aaa|.svg
- # 用于文件上传成功后,生成文件的下载公网完整URL,http://serverip:9095/file/download,注意填写IP必须填写后端服务所在的机器IP
- downloadPath: http://10.108.26.197:9095/file/download
- nfs:
- #上传对应本地全路径,注意目录不会自动创建,注意 Win是 \ 且有盘符,linux是 / 无盘符,注意目录权限问题
- path: /app/disk/upload/
- #若要使用minio文件存储,请启用以下配置
- #minio:
- # url: http://127.0.0.1
- # port: 9000
- # access-key: minioreport
- # secret-key: minioreport
- # bucket-name: aj-report
- #若要使用amazonS3文件存储,请启用以下配置
- #amazonS3:
- # url: http://127.0.0.1
- # access-key: access-key
- # secret-key: secret-key
- # bucket-name: AJ-Report
- #若minio和amazonS3都没有,使用服务器高可用的nfs共享盘
- Security:
- # jwt密钥,生产环境请自行修改,避免被远程伪造登录攻击
- jwtSecret: TybmmfrgsIqpPsBOYxvygCMVJWKNfDJU
- mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql打印
- call-setters-on-nulls: true
- mapperLocations:
- - classpath*:/mapper/**/*.xml
- - classpath*:/modeler-mybatis-mappings/**/*.xml
- management:
- endpoints:
- web:
- base-path: /
- logging:
- config: classpath:logback.xml
- # 本应用自定义参数
- customer:
- # 跳过token验证和权限验证的url清单
- skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html, /favicon.ico, /reportShare/detailByCode, /v2/api-docs, /reportExcel/exportExcel
- file:
- #导入导出临时文件夹 默认.代表当前目录,拼接/tmp_zip/目录
- tmpPath: .
- user:
- ##新增用户默认密码
- default:
- password: 123456
|