Files
ledgerly/src/main/resources/application.yml
T
rosercode 10fa1b5e96 refactor: 后端包名迁移至 cn.rosercode.finance
- 使用 git mv 将包路径由 com.example.finance 迁移至 cn.rosercode.finance
- 主类 MyApplication 重命名为 FinanceApplication,测试类同步更名
- build.gradle 的 group 调整为 cn.rosercode
- 同步 application.yml、logback-spring.xml 中的包引用
- 测试账号密码移至 credentials.md 并加入忽略规则,README 移除该信息
- 更新 README 与 docs 中的包路径示例
2026-09-17 17:04:43 +08:00

44 lines
890 B
YAML

spring:
application:
name: my-app
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
datasource:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: cn.rosercode.finance.entity
global-config:
db-config:
id-type: auto
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jwt:
secret: finance-app-secret-key-2026-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
expiration: 86400000
springdoc:
api-docs:
enabled: true
path: /v3/api-docs
swagger-ui:
enabled: true
path: /swagger-ui.html
packages-to-scan: cn.rosercode.finance.controller
knife4j:
enable: true
setting:
language: zh_cn
server:
port: 8080