6 Commits

Author SHA1 Message Date
jleroy
923b9c4579 patch prod 2024-05-03 14:32:04 +02:00
jleroy
7580d067cf patch prod 2024-05-03 14:29:19 +02:00
jleroy
aa0a02a6fc patch prod 2024-05-03 14:24:45 +02:00
jleroy
c28071b095 patch prod 2024-05-03 14:24:09 +02:00
Parpaillax
2d1e226cbc test 2024-05-03 13:57:04 +02:00
Parpaillax
68894784f2 test 2024-05-03 13:51:05 +02:00

View File

@@ -4,6 +4,7 @@ import fr.eni.enchere.interceptor.UserInterceptor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -26,4 +27,10 @@ public class MvcConfig implements WebMvcConfigurer {
registry.addInterceptor(userInterceptor); registry.addInterceptor(userInterceptor);
} }
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/images/**")
.addResourceLocations("classpath:/static/images/");
}
} }