Chapter 2. Starting in the Spring World – the CMS Application
Now, we'll create our first application; at this point, we have learned the Spring concepts, and we are ready to put them into practice. At the beginning of this chapter, we'll introduce the Spring dependencies to create a web application, also we know that Spring Initializr is a fantastic project that enables developers to create Spring skeleton projects, with as many dependencies as they want. In this chapter, we will learn how to put up our first Spring application on IDE and command line, expose our first endpoint, understand how this works under the hood, and get to know the main annotations of Spring REST support. We will figure out how to create a service layer for the CMS (Content Management System) application and understand how Dependency Injection works in a Spring container. We will meet the Spring stereotypes and implement our first Spring bean. At the end of this chapter, we will explain how to create a view layer...