1
This commit is contained in:
73
ems-backend/src/main/resources/application.properties
Normal file
73
ems-backend/src/main/resources/application.properties
Normal file
@@ -0,0 +1,73 @@
|
||||
spring.application.name=ems-backend
|
||||
|
||||
# ===================================================================
|
||||
# 移除数据库相关配置,使用JSON文件存储
|
||||
# ===================================================================
|
||||
|
||||
file.upload-dir=./uploads
|
||||
# A secure key for signing JWT tokens.
|
||||
# This should be a long, random, Base64-encoded string.
|
||||
# For production, this should be stored securely (e.g., as an environment variable).
|
||||
token.signing.key=Njc4MjQ2NzM1NzY1NjE0MzU0Njc1NjY5MzIzNTMzNTg0MjM0NTM0NTM0NTM0MzQ1MzQ1MzQ1MzQ1MzQ1MzQ1MzQ1
|
||||
|
||||
# ===================================================================
|
||||
# c. Volcano Engine AI Service Configuration
|
||||
# ===================================================================
|
||||
volcano.api.url=https://ark.cn-beijing.volces.com/api/v3/chat/completions
|
||||
volcano.api.key=4ba6ef42-2b1f-4961-a6a9-bf232c4153af
|
||||
volcano.model.name=deepseek-v3-250324
|
||||
|
||||
# ===================================================================
|
||||
# d. Spring AOP Configuration
|
||||
# ===================================================================
|
||||
# Force the use of CGLIB proxies for AOP
|
||||
spring.aop.proxy-target-class=true
|
||||
|
||||
# ===================================================================
|
||||
# e. Application Base URL
|
||||
# ===================================================================
|
||||
# This URL is used to construct absolute URLs for resources like uploaded files.
|
||||
# It should be the public-facing base URL of the application.
|
||||
app.base.url=http://localhost:5173
|
||||
|
||||
# ===================================================================
|
||||
# Mail Configuration for 163 SMTP
|
||||
# ===================================================================
|
||||
spring.mail.host=smtp.163.com
|
||||
spring.mail.port=465
|
||||
spring.mail.username=wanyizhou20251@163.com
|
||||
spring.mail.password=DTjbrbckcszsEjzz
|
||||
spring.mail.properties.mail.smtp.auth=true
|
||||
spring.mail.properties.mail.smtp.ssl.enable=true
|
||||
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
|
||||
spring.mail.properties.mail.smtp.socketFactory.fallback=false
|
||||
spring.mail.properties.mail.smtp.socketFactory.port=465
|
||||
spring.mail.properties.mail.transport.protocol=smtp
|
||||
spring.mail.properties.mail.debug=true
|
||||
|
||||
# ===================================================================
|
||||
# Server Configuration
|
||||
# ===================================================================
|
||||
server.port=8080
|
||||
|
||||
# ===================================================================
|
||||
# Logging Configuration
|
||||
# ===================================================================
|
||||
logging.level.root=INFO
|
||||
logging.level.com.dne.ems=DEBUG
|
||||
logging.level.org.springframework.web=INFO
|
||||
logging.level.org.hibernate=WARN
|
||||
|
||||
# ===================================================================
|
||||
# JWT Configuration
|
||||
# ===================================================================
|
||||
jwt.secret=EmS2023SecretKeyForJWTToKen1234567890
|
||||
jwt.expiration=86400000
|
||||
|
||||
# ===================================================================
|
||||
# Spring Task Configuration
|
||||
# ===================================================================
|
||||
spring.task.execution.pool.core-size=5
|
||||
spring.task.execution.pool.max-size=10
|
||||
spring.task.execution.pool.queue-capacity=25
|
||||
spring.task.execution.thread-name-prefix=ems-async-
|
||||
Reference in New Issue
Block a user