feat: 实现登录日志和操作日志的分页查询功能

refactor: 重构日志服务层代码,将分页逻辑移至Repository层

test: 添加日志分页查询的单元测试和组件测试

docs: 更新README文档,记录API响应格式修复过程

chore: 清理无用文件,更新.gitignore配置

build: 添加Jacoco代码覆盖率插件配置

ci: 添加测试环境配置文件application-h2-test.yml

style: 统一日志服务代码格式,添加必要的日志输出
This commit is contained in:
张翔
2026-04-03 17:49:55 +08:00
parent b0f91d74f5
commit 2de0529d34
36 changed files with 3549 additions and 462 deletions
@@ -0,0 +1,99 @@
server:
port: 8080
spring:
codec:
max-in-memory-size: 10MB
application:
name: manage-gateway
cloud:
gateway:
routes:
- id: manage-app
uri: http://localhost:8084
predicates:
- Path=/api/**
jwt:
secret: test-secret-key-for-e2e-testing-novalon-manage-system-2026
expiration: 86400000
key:
encryption:
password: test-encryption-password
rotation:
enabled: false
interval:
days: 30
rate:
limit:
enabled: false
global:
limit-for-period: 10000
limit-refresh-period: 1s
timeout-duration: 0
ip:
limit-for-period: 1000
limit-refresh-period: 1s
timeout-duration: 0
user:
limit-for-period: 2000
limit-refresh-period: 1s
timeout-duration: 0
signature:
enabled: false
secret: TestSecretKey2026
max-age-minutes: 30
nonce-cache-size: 10000
whitelist:
paths: /actuator/health,/actuator/info,/api/auth/login,/api/auth/register
resilience:
enabled: true
circuit-breaker:
enabled: true
failure-rate-threshold: 50
slow-call-rate-threshold: 100
slow-call-duration-threshold: 2s
permitted-number-of-calls-in-half-open-state: 10
sliding-window-type: COUNT_BASED
sliding-window-size: 100
minimum-number-of-calls: 10
wait-duration-in-open-state: 10s
retry:
enabled: true
max-attempts: 3
wait-duration: 500ms
timeout:
enabled: true
duration: 5s
user:
service:
url: http://localhost:8084
permission:
cache:
expiry:
minutes: 1
management:
endpoints:
web:
exposure:
include: health,info,metrics
base-path: /actuator
endpoint:
health:
show-details: always
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
logging:
level:
cn.novalon.manage: DEBUG
org.springframework.cloud.gateway: DEBUG