Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
923b9c4579 | ||
|
|
7580d067cf | ||
|
|
aa0a02a6fc | ||
|
|
c28071b095 | ||
|
|
2d1e226cbc | ||
|
|
68894784f2 |
@@ -4,6 +4,7 @@ import fr.eni.enchere.interceptor.UserInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
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.WebMvcConfigurer;
|
||||
|
||||
@@ -26,4 +27,10 @@ public class MvcConfig implements WebMvcConfigurer {
|
||||
registry.addInterceptor(userInterceptor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
registry.addResourceHandler("/images/**")
|
||||
.addResourceLocations("classpath:/static/images/");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user