I'm having trouble loading resources with the given configuration. Can anyone help out? I am working with Spring 5 and not using any XML configuration. Below is my resource handler function in the configuration page:
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}
Here is how I have referenced the resources in my JSP page:
<link rel="stylesheet" type="text/css" href="resources/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="resources/css/util.css">
<link rel="stylesheet" type="text/css" href="resources/css/main.css">
This is where my resource folder is located: resource location image