You may have skipped a step by following the guide.
I will explain why you get the behavior you see and can decide what to do next.
You probably launched the application
SpringApplication.run(Application.class, args);
Application class 'main. - @EnableAutoConfiguration ( ) DispatcherServlet, UrlBasedViewResolver, prefix suffix .
@Controller,
return "greeting";
Spring UrlBasedViewResolver . greeting. , , Servlet API HttpServletRequest#getRequestDispatcher(String), . RequestDispatcher, .
, RequestDispatcher, Spring ( ) . , . , /greeting /greeting, @Controller, . Spring , , .. .
, @EnableAutoConfiguration , UrlBasedViewResolver InternalResourceViewResolver, .
Spring MVC.