title: Spring Boot MVC application JSP not displaying
body: <p>I am new to spring boot trying to write a MVC application using Spring boot. Control is coming to the controller but the JSP is not getting displayed. i have tried putting JSP in webapp folder, webapp/web-inf folder it did not work. below is the code.</p>
  
  <p>application.properties:</p>
  
  <pre><code>server.port=8099
  spring.mvc.view.prefix: /webapp/
  spring.mvc.view.suffix: .jsp
  </code></pre>
  
  <p>LoginController:</p>
  
  <pre><code>    @Controller
      public class LoginController {  
          @RequestMapping("/login")
          public ModelAndView login(Model model) {
              System.out.println("*********************************");
              ModelAndView modelAndView = new ModelAndView();
              modelAndView.setViewName("welcome");
              return modelAndView;
          }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8oIAP.png" rel="nofollow noreferrer">project structure</a></p>