Guest User

Untitled

a guest
Jun 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <link rel="stylesheet" type="text/css" href="/static/style.css" >
  2.  
  3. package com.config;
  4. import org.springframework.context.annotation.Configuration;
  5. import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
  6. import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
  7.  
  8. @Configuration
  9. public class MvcConfig implements WebMvcConfigurer {
  10.  
  11. @Override
  12. public void addResourceHandlers(ResourceHandlerRegistry registry){
  13. registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
  14. }
Add Comment
Please, Sign In to add comment