I have a Spring Boot java application which I need to deploy in Tomcat. In index.html i there is code like and . Index.html, bundle.js and test.jpg are located in same folder.
If i launch :bootRun task in gradle (analog to "mvn spring-boot:run") - everything works fine, but when i deploy war file to Tomcat image and script files are not loaded. I tried various paths in "src" attribute and tried to move files in webapps/app directory tree but have not succeeded.
How can this be fixed?
Aucun commentaire:
Enregistrer un commentaire