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.
Some additional info: application uses Spring 3.0, so main class extends SpringBootServletInitializer, and there is no web.xml file.
How can this be fixed?