OiO.lk Blog HTML How to use .html files not .jsp in spring project?
HTML

How to use .html files not .jsp in spring project?


I created a Spring project, connected the Tomcat server, added the necessary dependencies to pom.xml, and created the configuration files web.xml and applicationContextMVC.xml
created the necessary .html file at the location webapp/WEB-INF/views/.
When the server is started, the information is displayed from the index.jsp file from the webapp package, but I need to get it from my html file.

  1. I tried to delete index.jsp
  2. Moved the necessary html file to src/main/resources/static
    nothing works



You need to sign in to view this answers

Exit mobile version