From bed7feb4c83cc5da5f4b5b501bc350d82fcc3a25 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Wed, 11 Dec 2024 15:44:22 +0100 Subject: [PATCH] Register WebMVC and HAL Explorer module with DevTools. We now declare explicit Spring Boot DevTools configuration to include Spring Data REST WebMVC and HAL Explorer in the restart classloader to prevent proxying issues with package protected types. Fixes GH-2438. --- .../src/main/resources/META-INF/spring-devtools.properties | 1 + .../src/main/resources/META-INF/spring-devtools.properties | 1 + 2 files changed, 2 insertions(+) create mode 100644 spring-data-rest-hal-explorer/src/main/resources/META-INF/spring-devtools.properties create mode 100644 spring-data-rest-webmvc/src/main/resources/META-INF/spring-devtools.properties diff --git a/spring-data-rest-hal-explorer/src/main/resources/META-INF/spring-devtools.properties b/spring-data-rest-hal-explorer/src/main/resources/META-INF/spring-devtools.properties new file mode 100644 index 000000000..4293cda9a --- /dev/null +++ b/spring-data-rest-hal-explorer/src/main/resources/META-INF/spring-devtools.properties @@ -0,0 +1 @@ +restart.include.spring-data-rest-webmvc:/spring-data-rest-hal-explorer-[\\w-\\.]+\.jar diff --git a/spring-data-rest-webmvc/src/main/resources/META-INF/spring-devtools.properties b/spring-data-rest-webmvc/src/main/resources/META-INF/spring-devtools.properties new file mode 100644 index 000000000..367ff44f9 --- /dev/null +++ b/spring-data-rest-webmvc/src/main/resources/META-INF/spring-devtools.properties @@ -0,0 +1 @@ +restart.include.spring-data-rest-webmvc:/spring-data-rest-webmvc-[\\w-\\.]+\.jar