# 完整的外挂配置文件,修改配置无需重新打包 # 运行命令:java -jar yf-exam-api.jar --spring.config.location=application-local.yml server: port: 8101 # 启用服务端压缩 compression: enabled: true min-response-size: 10 mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css spring: application: name: yf-exam-api profiles: active: dev main: allow-bean-definition-overriding: true # 数据库配置 datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/yf_exam?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: root password: root filters: stat max-active: 1000 initial-size: 10 max-wait: 6000 min-idle: 1 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-open-prepared-statements: 1000 async-init: true # Redis配置 redis: database: 0 host: 127.0.0.1 port: 6379 password: timeout: 5000 # 定时任务配置 quartz: #数据库方式 job-store-type: jdbc # quartz 相关属性配置 properties: org: quartz: scheduler: instanceName: examScheduler instanceId: AUTO jobStore: class: org.quartz.impl.jdbcjobstore.JobStoreTX driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate tablePrefix: QRTZ_ isClustered: true clusterCheckinInterval: 10000 useProperties: false threadPool: class: org.quartz.simpl.SimpleThreadPool threadCount: 10 threadPriority: 5 threadsInheritContextClassLoaderOfInitializingThread: true # 文档转换,请先安装LibreOffice,再配置相应路径,enabled=true jodconverter: local: enabled: false office-home: /opt/libreoffice6.4 max-tasks-per-process: 10 port-numbers: 8100 # 基础配置 ycloud: # 运行模式,ture为演示/false为正式 demo: false # false运行多处登录,true为T下线 login-tick: false # 微信登录成功以后,将token推送到这个链接同步登录 login-sync-pc: https://youdomain.com/#/sync/{token}/{roleType} # 微信登录成功以后,将token推送到这个链接同步登录 login-sync-h5: https://youdomain.com/#/pages/login/sync?token={token} # 微信获取code以后回调此URL login-redirect: https://youdomain.com/api/common/wx/redirect # 微信相关配置 wechat: login: # 小程序登录appId mp-app-id: mp-app-secret: # 网站登录appId site-app-id: site-app-secret: # 生产环境建议关闭文档 # 文档访问地址:http://localhost:8101/doc.html swagger: enable: false logging: level: root: error # 日志文件目录 path: logs/${spring.application.name}/