vendredi 12 juillet 2019

How serve web-folder in Spring Boot out from /resources/

I need help, my Spring Boot 2 Server from a first web generate other web site (folder with html,css ext ext) from a template, but these web sites/html aren't accessible, Spring give me error 404, not found.

I will build the project with Maven in .jar

The gerarchy of the project is this:

---
 |_folder
 . |_webapp1
 . |_webapp2
 |_src
 . |_main
 . . |_java
 . . |_resources
 . . . |_public (With first web)
 . . . |_static (Template used to generate other web site, i simply copy this directoy in other directory, doing  templateServices.copyDirectory("target/classes/static/", "folder/webapp1");
---




Aucun commentaire:

Enregistrer un commentaire