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 {
@Override
public void addResourceHandlers(@NotNull ResourceHandlerRegistry registry) {
registry
.addResourceHandler("/resources/**")
.addResourceLocations("file:" + settings.getStaticResourcesRootPath() + "/");
registry
.addResourceHandler("/resources/images/**")
.addResourceLocations("classpath:/static/images/");
registry.addResourceHandler("/static/**").
addResourceLocations("classpath:/static/");
}
......
......@@ -4,4 +4,4 @@ server.port=8084
logging.level.org.springframework=DEBUG
logging.level.com.example=DEBUG
# application.properties
spring.profiles.active=dev
\ No newline at end of file
spring.profiles.active=prod
\ 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