0
Good night to you all!
I can’t access the css of my application in spring, even after mapping resouce, follows codes:
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
And follow the html of it:
<link href="resources/css/bootstrap/bootstrap.css" rel="stylesheet" media="screen">
What will be the problem, because even after maper I can’t access css.
Where you put your css file?
– Felipe Marinho
The css file is in Resources inside the src/main folder.
– Marcos Paulo