WebJun 28, 2024 · If you keep unchanged your controller, you must have a controller folder name in /grails-app/views (ex /views/home/index.gsp) Or indicate the view you use in controller action (ex : render view: '/index' or render view: '/home/index') to join this conversation on GitHub . Already have an account? Sign in to comment WebReason: Server Error Caused by: javax.servlet.ServletException: Could not resolve view with name 'index.html' in servlet with name 'dispatcher' at org.springframework.web.servlet.DispatcherServlet.render (DispatcherServlet.java:1227) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult …
java - javax.servlet.ServletException: Could not resolve view with name ...
WebUse this ,I can resolve my js and css and images ,but when I use html in springboot and appliction as you . I can not visit index.html. show javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'dispatcherServlet . but when I change .html to ftl . all is ok . please tell why if you know. Thanks – WebSep 2, 2024 · 1 Remove @EnableWebMvc above MvcConfig and change try these method with the two line changed, others the same: @Override public void addViewControllers (final ViewControllerRegistry registry) { registry.addViewController ("/").setViewName ("forward:/index.html"); registry.addViewController ("/index.html"); // add other lines } Share maslow hierarchy of needs strengths
Spring Boot: Could not resolve view with name
WebMar 4, 2024 · Could not resolve view with name 'index' in servlet with name 'dispatcherServlet' Folder structure is fine. But still error. Have I done something wrong in creating spring boot application? how to create a spring boot mvc project? WebA combination of jetty, apache tiles and spring's view resolver does not work when there is a space in the location. For ex : a project location - D:\folder whitespace\your_project will throw the above error -Could not resolve view with … WebOct 20, 2024 · This only happens for the root url, so "/docs" will not serve up "/docs/index.html", and you are just creating unnecessary work and headaches if you change that. Just make sure that your root/index uses fully qualified resource and file names instead. maslow hierarchy of needs sense of belonging