Spring 5.0 By Example
上QQ阅读APP看书,第一时间看更新

The CMS project

Before we start to code and learn amazing things, let's understand a little bit about the CMS project, the main purpose of this project is to help companies manage the CMS content for different topics. There are three main entities in this project:

  • The News class is the most important, it will store the content of the news.
  • It has a category which makes the search easier, and we can also group news by category, and of course, we can group by the user who has created the news. The news should be approved by other users to make sure it follows the company rules.
  • The news has some tags as well, as we can see the application is pretty standard, the business rules are easy as well; this is intentional because we keep the focus on the new things we will learn.

Now we know how Spring Initializr (https://start.spring.io) works and the business rules we need to follow, we are ready to create the project. Let's do it right now.