Commit d33172ec authored by Deep Dey's avatar Deep Dey

chore: add prod server config

parent d64842ed
...@@ -23,14 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer { ...@@ -23,14 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override @Override
public void addResourceHandlers(@NotNull ResourceHandlerRegistry registry) { public void addResourceHandlers(@NotNull ResourceHandlerRegistry registry) {
registry registry
.addResourceHandler("/resources/**") .addResourceHandler("/resources/**")
.addResourceLocations("file:" + settings.getStaticResourcesRootPath() + "/"); .addResourceLocations("file:" + settings.getStaticResourcesRootPath() + "/");
registry
.addResourceHandler("/resources/images/**")
.addResourceLocations("classpath:/static/images/");
registry.addResourceHandler("/static/**"). registry.addResourceHandler("/static/**").
addResourceLocations("classpath:/static/"); addResourceLocations("classpath:/static/");
} }
......
...@@ -4,4 +4,4 @@ server.port=8084 ...@@ -4,4 +4,4 @@ server.port=8084
logging.level.org.springframework=DEBUG logging.level.org.springframework=DEBUG
logging.level.com.example=DEBUG logging.level.com.example=DEBUG
# application.properties # application.properties
spring.profiles.active=dev spring.profiles.active=prod
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment