- Implement dual-tier security with ActuatorSecurityConfig having higher priority - Add metrics collection for order creation with tenant tagging - Enhance cache resilience with graceful error handling - Create custom Redis ping health indicator - Add comprehensive K8s deployment manifests with Kustomize overlays - Update OrderController to align with Batch 8 AppService methods - Configure management endpoints with separate port in production - Add deployment scripts for image tag updates Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
36 lines
781 B
YAML
36 lines
781 B
YAML
spring:
|
||
datasource:
|
||
url: jdbc:postgresql://localhost:5432/tmpl_dev
|
||
username: postgres
|
||
password: postgres
|
||
jpa:
|
||
show-sql: true
|
||
data:
|
||
redis:
|
||
host: localhost
|
||
port: 6379
|
||
profiles:
|
||
include: redis
|
||
|
||
# ====== Batch 9 dev 覆盖 ======
|
||
# dev 环境管理端口合并到业务端口(仅本地开发便利)。
|
||
# prod/staging 使用独立管理端口 9090,通过网络策略隔离。
|
||
# actuator SecurityFilterChain(Order=1)在任何端口配置下都独立生效。
|
||
management:
|
||
server:
|
||
port: ${server.port:8080}
|
||
endpoint:
|
||
health:
|
||
show-details: always
|
||
show-components: always
|
||
|
||
app:
|
||
security:
|
||
header-compat: true
|
||
cache:
|
||
enabled: true
|
||
|
||
logging:
|
||
level:
|
||
com.ljwx.tmpl: DEBUG
|
||
org.hibernate.SQL: DEBUG |