I want to include static content in Spring boot JAR application. I understood it's recommended to not use /src/main/webapp.
But with IntelliJ, the application run correctly. I tried to change to
/src/main/resources
or
/src/main/public
, but it doesnt work.
/public works, but I dont think its is a good solution.
How I rename static directory and where I have to move please ?
thanks
/src/main/webapp? That's where the public content should go in a Maven app.Do not use the src/main/webapp directory if your application will be packaged as a jar