From 9a71523a43d3ce61ac014d43b726b7ed10ad1ed2 Mon Sep 17 00:00:00 2001 From: John Niang Date: Wed, 17 Jan 2024 23:25:37 +0800 Subject: [PATCH 1/2] Disable Swagger cache in development environment --- application/src/main/resources/application-dev.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/src/main/resources/application-dev.yaml b/application/src/main/resources/application-dev.yaml index ddc6b95210..682c6073f0 100644 --- a/application/src/main/resources/application-dev.yaml +++ b/application/src/main/resources/application-dev.yaml @@ -31,6 +31,8 @@ logging: run.halo.app: DEBUG org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler: DEBUG springdoc: + cache: + disabled: true api-docs: enabled: true version: OPENAPI_3_1 @@ -38,6 +40,7 @@ springdoc: enabled: true show-actuator: true + management: endpoints: web: From 47d1a199e9229b82bb45cfb44582971e2ac702ff Mon Sep 17 00:00:00 2001 From: John Niang Date: Wed, 17 Jan 2024 23:30:32 +0800 Subject: [PATCH 2/2] Remove invalid edit --- application/src/main/resources/application-dev.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/application/src/main/resources/application-dev.yaml b/application/src/main/resources/application-dev.yaml index 682c6073f0..8d7c5dd1e0 100644 --- a/application/src/main/resources/application-dev.yaml +++ b/application/src/main/resources/application-dev.yaml @@ -40,7 +40,6 @@ springdoc: enabled: true show-actuator: true - management: endpoints: web: