微信连接,本地数据上传
All checks were successful
构建并部署 Spring Boot 应用 / build-and-deploy (push) Successful in 15m11s

This commit is contained in:
2025-10-15 23:41:09 +08:00
parent 63d0860553
commit 11e1e5d42b
7 changed files with 243 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
spring.application.name=Light-Local
server.port=8080
# 使用远程数据库(与生产环境相同)
spring.datasource.url=jdbc:mysql://115.190.121.151:3306/light_delivery?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
spring.datasource.username=double
spring.datasource.password=Hu@ng1998!
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# 数据库连接池配置
spring.datasource.hikari.maximum-pool-size=5
spring.datasource.hikari.minimum-idle=1
spring.datasource.hikari.connection-timeout=20000
spring.datasource.hikari.idle-timeout=300000
spring.datasource.hikari.max-lifetime=600000
# JPA配置
spring.jpa.hibernate.ddl-auto=none
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
# 禁用SSL以便于本地测试
server.ssl.enabled=false
# 移除所有SSL相关配置以防止Spring Boot 3.x尝试加载它们
# 微信小程序配置(本地环境与生产环境使用相同配置)
wx.appId=wx1b790fd953ac27bf
wx.secret=b38c40c89cc4954472fb45d1e7cc27a4
wx.token=huang1998
wx.aesKey=lwararkj1BgurX8Qown6yjGNsqd8dEIEddDnYN3iLgc
wx.api.access-token-url=https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential
wx.api.code2session-url=https://api.weixin.qq.com/sns/jscode2session
jwt.secret=CRMO1KEF/YP07zoV8+X1F3/DfkvksgPUs6tdLRR8urWCEBPMEO+5nt50xRkRl8JBJursSnvv++qylsaz5zryuA==
jwt.expiration=86400
logging.level.com.light.delivery=DEBUG
management.endpoints.web.exposure.include=health,info
management.endpoint.health.show-details=always