You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.2 KiB
95 lines
3.2 KiB
|
4 weeks ago
|
server:
|
||
|
|
port: 9088
|
||
|
|
spring:
|
||
|
|
main:
|
||
|
|
# 允许 Bean 覆盖,解决 dynamic-datasource 与 JPA 的初始化冲突
|
||
|
|
allow-bean-definition-overriding: true
|
||
|
|
datasource:
|
||
|
|
url: jdbc:mysql://8.129.84.155:3306/auto_logistics?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useSSL=false
|
||
|
|
username: logistics_admin
|
||
|
|
password: Itc@123456
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
|
||
|
|
# dynamic:
|
||
|
|
# primary: master
|
||
|
|
# datasource:
|
||
|
|
# master:
|
||
|
|
# driverClassName: com.mysql.cj.jdbc.Driver
|
||
|
|
# password: Itc@123456
|
||
|
|
# url: jdbc:mysql://8.129.84.155:3306/auto_logistics?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useSSL=false
|
||
|
|
# username: logistics_admin
|
||
|
|
|
||
|
|
data:
|
||
|
|
redis:
|
||
|
|
host: 8.129.84.155
|
||
|
|
port: 6379
|
||
|
|
password: 123456
|
||
|
|
database: 5
|
||
|
|
timeout: 5000ms
|
||
|
|
lettuce:
|
||
|
|
pool:
|
||
|
|
max-active: 8
|
||
|
|
max-idle: 30
|
||
|
|
max-wait: 10000
|
||
|
|
min-idle: 10
|
||
|
|
jpa:
|
||
|
|
hibernate:
|
||
|
|
# 确保是 update
|
||
|
|
ddl-auto: update
|
||
|
|
# 显式指定数据库平台
|
||
|
|
database-platform: org.hibernate.dialect.MySQL8Dialect
|
||
|
|
show-sql: true
|
||
|
|
# 关键:告诉 Hibernate 自动扫描实体类
|
||
|
|
open-in-view: true
|
||
|
|
properties:
|
||
|
|
hibernate:
|
||
|
|
dialect: org.hibernate.dialect.MySQL8Dialect
|
||
|
|
# 显式指定命名策略,防止大小写或下划线解析错误
|
||
|
|
physical_strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||
|
|
sf:
|
||
|
|
api:
|
||
|
|
partnerId: Y847O1KA
|
||
|
|
secret: ZXmoWOQdSd2UTBmSP6Kv3VW9Q4N5dJqz
|
||
|
|
tokenUrl: https://sfapi-sbox.sf-express.com/oauth2/accessToken
|
||
|
|
baseUrl: https://sfapi-sbox.sf-express.com/std/service
|
||
|
|
channelCode: MCS-CAS-API-BOX
|
||
|
|
mybatis-plus:
|
||
|
|
configuration:
|
||
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开发环境下打印SQL
|
||
|
|
map-underscore-to-camel-case: true # 开启驼峰命名
|
||
|
|
global-config:
|
||
|
|
db-config:
|
||
|
|
id-type: assign_id # 使用雪花算法生成本地订单主键ID
|
||
|
|
webdav:
|
||
|
|
url: "http://8.129.84.155:8881"
|
||
|
|
username: "admin"
|
||
|
|
password: "123456"
|
||
|
|
logistics:
|
||
|
|
scanner:
|
||
|
|
enabled: true
|
||
|
|
# 每 10 分钟唤醒一次 (系统开销微乎其微)
|
||
|
|
cron: "0 0/10 * * * ?"
|
||
|
|
windows:
|
||
|
|
# 这个窗口设置10分钟有效期,配合10分钟一次的唤醒,只会跑一次
|
||
|
|
- name: "上午11点班次"
|
||
|
|
startTime: "11:00"
|
||
|
|
endTime: "11:10"
|
||
|
|
intervalMinutes: 60
|
||
|
|
# 这个窗口在15-20点之间,每隔20分钟会真正跑一次逻辑
|
||
|
|
- name: "下午至傍晚波次"
|
||
|
|
startTime: "15:00"
|
||
|
|
endTime: "20:00"
|
||
|
|
intervalMinutes: 20
|
||
|
|
logging:
|
||
|
|
level:
|
||
|
|
# 强制打印 Hibernate 初始化过程
|
||
|
|
org.hibernate.SQL: debug
|
||
|
|
org.hibernate.orm.deprecation: error
|
||
|
|
org.hibernate.tool.schema: debug
|
||
|
|
# 看看 Spring 到底有没有加载 JPA
|
||
|
|
org.springframework.orm.jpa: debug
|
||
|
|
u9-source:
|
||
|
|
url: jdbc:sqlserver://192.168.4.202:1433;databaseName=20241030;encrypt=false;trustServerCertificate=true
|
||
|
|
username: sa
|
||
|
|
password: 'Liujun1928374650'
|
||
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|