Last active
May 21, 2018 21:31
-
-
Save kshep92/2f95ef3123d974e77c3b36b7a04a5a04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class MvcConfig implements WebMvcConfigurer { | |
@Value("${spring.resources.static-locations}") | |
String resourceLocations; | |
@Override | |
public void addResourceHandlers(ResourceHandlerRegistry registry) { | |
registry.addResourceHandler("/public/**").addResourceLocations(resourceLocations); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment