java-mall/mall-shop/target/classes/application.yml
2024-10-26 10:01:40 +08:00

106 lines
3.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8089
spring:
messages:
basename: i18n/messages #配置国际化资源文件路径
encoding: UTF-8
freemarker:
request-context-attribute: req #req访问request
cache: false
charset: UTF-8
content-type: text/html; charset=utf-8
suffix: .html
template-loader-path: classpath:/templates/
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: always # 每次启动项目都重新清空定时任务
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
rmi:
export: false
proxy: false
jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
useProperties: false
misfireThreshold: 60000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
dataSource:
myDS:
URL: jdbc:mysql:///test?characterEncoding=utf8&serverTimezone=UTC
user: store
password: brCnv0qLt8s0VqhI
driver: com.mysql.jdbc.Driver
maxConnections: 5
mybatis-plus:
mapper-locations: classpath:/mapper/**/*.xml
global-config:
field-strategy: 1
db-config:
id-type: auto
configuration:
auto-mapping-behavior: partial
map-underscore-to-camel-case: false
management: #开启SpringBoot Admin的监控
endpoints:
web:
exposure:
include: "" # 暴露xxx端点如需暴露多个用,分隔;如需暴露所有端点,用'*'
enabled-by-default: false
endpoint:
health:
show-details: ALWAYS # 是否展示健康检查详情
# info信息会显示到SpringBootAdmin的server端这里取的是pom文件中的数据
info:
version: 1.0-SNAPSHOT
groupId: com.suisung.mall
artifactId: mall-shop
aliyun:
oss:
policy:
expire: 300 # 签名有效期(S)
maxSize: 10 # 上传文件大小(M)
callback: http://464d-221-239-130-64.ngrok.io:8201/aliyun/oss/callback # 文件上传成功后的回调地址
dir:
# prefix: shop/data/upload # 上传文件夹路径前缀
prefix: mall/images # 上传文件夹路径前缀
feign:
okhttp:
enabled: true
ribbon:
ConnectTimeout: 60000 #服务请求连接超时时间(毫秒)
ReadTimeout: 60000 #服务请求处理超时时间(毫秒)
baidu:
ak: "uwBrIUOZuTDMHsuRGm0hdmeG9sosN8sQ" # 百度地图ak
# 定时任务列表
job:
classNames:
- "UpdateVoucherStatusJob"
- "UpdateProductStatusJob"
- "UpdateActivityStatusJob"
- "UpdateActivityPrizeJob"
- "UpdateOrderStatusJob"
- "UpdateOrderRefundJob"
- "RsyncNoticeMsgJob"
- "RsyncLogJob"
# - "NoticeLearnTargetJob"
- "StoreValidTimeJod"
- "OrderTransferToSupplierJob"
- "CheckGroupBookingJob"
- "UpdateHallOrderStatusJob"
- "UpdatePayCardStateJob"
- "RetryMqMsgJob"