附带jar

This commit is contained in:
2026-06-09 13:45:35 +08:00
parent f3543f4188
commit 987ba9825f
325 changed files with 789 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
HELP.md HELP.md
target/ # target/
.mvn/wrapper/maven-wrapper.jar .mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/ !**/src/main/**/target/
!**/src/test/**/target/ !**/src/test/**/target/

8
git.md
View File

@@ -25,10 +25,16 @@ https://git.njtobobsales.top/guxz/aue.git
# 四、日常更新代码(自己修改代码时) # 四、日常更新代码(自己修改代码时)
```bash ```bash
git pull # 每次开始写代码前必用 # 检查远程是否有更新(不会修改本地代码)
git fetch origin
git status
git pull # 多人每次开始写代码前必用
git add . # 记录新增/修改 git add . # 记录新增/修改
git add -A # 记录所有新增/修改/删除
git commit -m "说明" # 提交本地 git commit -m "说明" # 提交本地
git push # 上传到仓库 git push # 上传到仓库
git config --global credential.helper manager # 记住密码
``` ```
--- ---

View File

@@ -0,0 +1,106 @@
server:
port: 8080
servlet:
context-path: /api
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/knowledge_management_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:123456}
servlet:
multipart:
enabled: true
max-file-size: 100MB
max-request-size: 100MB
file-size-threshold: 2KB
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
data:
redis:
host: ${REDIS_HOST:redis}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
database: 0
timeout: 3000ms
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
max-wait: -1ms
springdoc:
api-docs:
enabled: ${SWAGGER_ENABLED:true}
path: /v3/api-docs
swagger-ui:
enabled: ${SWAGGER_ENABLED:true}
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: alpha
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: top.tqx.demo_1.controller
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
type-aliases-package: top.tqx.demo_1.entity
global-config:
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jwt:
secret: ${JWT_SECRET:your-secret-key-for-jwt-token-generation-2024-change-in-production}
expiration: 7200000
header: Authorization
prefix: Bearer
ai:
api:
host: ${AI_HOST:localhost}
port: ${AI_PORT:5001}
key: ${AI_KEY:app-0iWrwSYdTczCmRmtVNhfjWnq}
file:
upload:
path: ./uploads/
url-prefix: /files/
allowed-extensions:
- .doc
- .docx
- .pdf
- .txt
- .jpg
- .jpeg
- .png
- .gif
- .webp
max-size: 10485760
x-key: ${X_KEY:password123}
cors:
allowed-origins: ${CORS_ALLOWED_ORIGINS:*}
logging:
level:
top.tqx.demo_1: INFO
org.springframework.security: WARN
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} - %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
file:
name: /app/logs/file-management-system.log
max-size: 10MB
max-history: 30

View File

@@ -0,0 +1,105 @@
server:
port: 8080
servlet:
context-path: /api
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DB_HOST:mysql}:3306/knowledge_management_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:123456}
servlet:
multipart:
enabled: true
max-file-size: 500MB
max-request-size: 500MB
file-size-threshold: 2KB
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
data:
redis:
host: ${REDIS_HOST:redis}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
database: 0
timeout: 3000ms
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
max-wait: -1ms
springdoc:
api-docs:
enabled: ${SWAGGER_ENABLED:true}
path: /v3/api-docs
swagger-ui:
enabled: ${SWAGGER_ENABLED:true}
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: alpha
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: top.tqx.demo_1.controller
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
type-aliases-package: top.tqx.demo_1.entity
global-config:
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jwt:
secret: ${JWT_SECRET:your-secret-key-for-jwt-token-generation-2024-change-in-production}
expiration: 7200000
header: Authorization
prefix: Bearer
ai:
api:
host: ${AI_HOST:localhost}
port: ${AI_PORT:5001}
file:
upload:
path: /app/uploads/
url-prefix: /files/
allowed-extensions:
- .doc
- .docx
- .pdf
- .txt
- .jpg
- .jpeg
- .png
- .gif
- .webp
max-size: 524288000
x-key: ${X_KEY:password123}
cors:
allowed-origins: ${CORS_ALLOWED_ORIGINS:*}
logging:
level:
top.tqx.demo_1: INFO
org.springframework.security: WARN
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} - %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
file:
name: /app/logs/file-management-system.log
max-size: 10MB
max-history: 30

View File

@@ -0,0 +1,5 @@
spring:
main:
allow-circular-references: true
profiles:
active: dev

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More