I have a Spring Boot project which has to start an angular spa. The structure of the resource folder is the following:
Update the resource location to point to your classpath.
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/js/**")
.addResourceLocations("classpath:/templates/src/js/");
}
Spring Boot also adds static content automatically from the following classpath locations:
/META-INF/resources
/resources/
/static/
/public/
Source: Serving Static Web Content with Spring Boot