Files
mengyastore/mengyastore-backend-java/src/main/resources/application.yaml
2026-04-03 21:18:28 +08:00

86 lines
2.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.
spring:
application:
name: mengyastore-backend-java
profiles:
active: dev
datasource:
url: jdbc:mysql://10.1.1.100:3306/mengyastore-test?charset=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: mengyastore-test
password: mengyastore-test
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: false
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: false
rabbitmq:
host: 10.1.1.233
port: 5672
username: admin
# 请将此密码替换为真实的 RabbitMQ 密码,然后将 app.rabbitmq-enabled 设为 true
password: shumengya520
virtual-host: mengyastore-dev
listener:
simple:
acknowledge-mode: manual
prefetch: 1
data:
redis:
host: 10.1.1.100
port: 6379
password: tyh@19900420
database: 1
timeout: 3000ms
mail:
host: smtp.qq.com
port: 465
username: ""
password: ""
properties:
mail:
smtp:
auth: true
ssl:
enable: true
socketFactory:
port: 465
class: javax.net.ssl.SSLSocketFactory
fallback: false
server:
port: 8080
app:
admin-token: shumengya520
auth-api-url: https://auth.api.shumengya.top
# 对应 Go 的 APP_ENVdevelopment | production系统状态页「应用环境」
app-env: development
# 对应 Go 的 REDIS_ENABLEDfalse 时系统状态里 Redis 为「未启用」且不再探测
redis-enabled: true
# 对应 Go 后端的 RABBITMQ_ENABLED默认关闭密码配置正确后再改为 true
rabbitmq-enabled: true
rabbitmq-env: dev
redis-env: dev
public-api-base-url: ""
cors-allowed-origins: "http://localhost:5173,http://localhost:3000,http://localhost:5174"
# SMTP 在库里配置前无用户名密码;关闭邮件健康检查避免启动后打 ERROR 日志
management:
health:
mail:
enabled: false
logging:
level:
com.smyhub.store: INFO
org.springframework.amqp: WARN
org.springframework.data.redis: WARN