I am studying spring boot. And now I have to deploy my static resources to the web project, linking it, but it returns 404 error
Also, when I access to "localhost:8080/appie/resources/js/common.js" browser returns 404 error(my context path is /appie).
What could be that reason?
server.contextPath=/appie

Spring Boot by convention serves static resources under
src/main/resources/static. The path of the resource will be relative to this, so if you putcommon.jsunderstaticresources, you will be able to access to it in: localhost:8080/appie/common.jsTo access to it in as
resources/js/common.jscreate this folder structure understatic.