86 lines
1.9 KiB
YAML
86 lines
1.9 KiB
YAML
spring:
|
||
application:
|
||
name: accounting-backend
|
||
datasource:
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
url: jdbc:mysql://45.207.192.237/accounting_db?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
|
||
username: root
|
||
password: mysql_4DBzGc
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 5MB
|
||
max-request-size: 10MB
|
||
jackson:
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
time-zone: GMT+8
|
||
|
||
# MyBatis Plus配置
|
||
mybatis-plus:
|
||
mapper-locations: classpath:mapper/*.xml
|
||
type-aliases-package: com.accounting.entity
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
global-config:
|
||
db-config:
|
||
id-type: auto
|
||
logic-delete-field: deleted
|
||
logic-delete-value: 1
|
||
logic-not-delete-value: 0
|
||
|
||
# JWT配置
|
||
jwt:
|
||
secret: accounting-secret-key-2024-change-in-production-accounting-secret-key-2024-change-in-production-accounting-secret-key-2024-change-in-production
|
||
expiration: 86400000 # 24小时,单位毫秒
|
||
|
||
# 阿里云OCR配置
|
||
aliyun:
|
||
ocr:
|
||
access-key-id: ${ALIYUN_ACCESS_KEY_ID:LTAI5tDCJuB9YgLx4KeJwc9C}
|
||
access-key-secret: ${ALIYUN_ACCESS_KEY_SECRET:aitimi6EtVsLQJ8S40bqa5nZrGfGRR}
|
||
endpoint: ocr-api.cn-hangzhou.aliyuncs.com
|
||
|
||
# 文件上传配置
|
||
file:
|
||
upload:
|
||
path: ${user.home}/accounting/uploads/
|
||
|
||
# Knife4j配置
|
||
knife4j:
|
||
enable: true
|
||
openapi:
|
||
title: 记账应用API文档
|
||
description: 记账应用后端API接口文档
|
||
version: 1.0.0
|
||
contact:
|
||
name: Accounting API
|
||
license: Apache 2.0
|
||
license-url: https://www.apache.org/licenses/LICENSE-2.0.html
|
||
servers:
|
||
- url: http://localhost:8080
|
||
description: 本地开发环境
|
||
|
||
# K780 API配置
|
||
k780:
|
||
api-url: https://sapi.k780.com
|
||
app-key: 78346
|
||
sign: 1b502c535927b66d9b888a6d4701bf72
|
||
timeout: 5000
|
||
|
||
server:
|
||
port: 12345
|
||
|
||
logging:
|
||
level:
|
||
com.accounting: debug
|
||
org.springframework.security: debug
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|