Remove @EnableWebMvc annotation from SnapAdminMvcConfig

The `@EnableWebMvc` annotation was removed to prevent overriding Spring Boot's default MVC configuration. This change ensures better compatibility with existing configurations and avoids potential conflicts in the application.
This commit is contained in:
dalbodeule 2025-05-22 00:50:02 +09:00
parent 35b02d156b
commit 61ff240456
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -22,12 +22,10 @@ package space.mori.dalbodeule.snapadmin.external;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
@EnableWebMvc
public class SnapAdminMvcConfig implements WebMvcConfigurer {
@Autowired
private SnapAdminProperties properties;