From 40362c307c0941599fc4aa2ec59bc9e5cf8be17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20W=C3=BCrsten?= Date: Fri, 14 Nov 2025 14:22:08 +0100 Subject: [PATCH] move mime-mappings.properties to correct module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - there is a `FileNotFoundException` with the message `class path resource [org/springframework/boot/web/server/mime-mappings.properties] cannot be opened because it does not exist` if a static file is requested via url - with spring boot 4.0.0 the modularization of the project was changed. in bb80db8 the web server auto-configure classes were moved into spring-boot-web-server module - the `mime-mappings.properties` was still in the spring-boot module - without java modules this is not an issue as spring-boot-web-server is part of the unnamed module and the property file can still be access - however if a `requires spring.boot.web.server` is added the exception was thrown - to fix this issue also move the property file to the new created module spring-boot-web-server Signed-off-by: Stefan Würsten --- .../org/springframework/boot/web/server/mime-mappings.properties | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {core/spring-boot => module/spring-boot-web-server}/src/main/resources/org/springframework/boot/web/server/mime-mappings.properties (100%) diff --git a/core/spring-boot/src/main/resources/org/springframework/boot/web/server/mime-mappings.properties b/module/spring-boot-web-server/src/main/resources/org/springframework/boot/web/server/mime-mappings.properties similarity index 100% rename from core/spring-boot/src/main/resources/org/springframework/boot/web/server/mime-mappings.properties rename to module/spring-boot-web-server/src/main/resources/org/springframework/boot/web/server/mime-mappings.properties