Créer un site internet

Project creation

In this section, I will show you the different steps established in order to create a spring MVC project. In this project, I will also use: 

a. Hibernate: Object/Relational persistence and query service.

b. Thymeleaf: Java template engine for processing and creating HTML, XML, JavaScript, CSS, and text.

1. Project creation with the Initializr:

Spring Initializr:  is a wizard that allows you to select the necessary configuration when you are creating a project or a module. In this example, we will add Spring Boot starters and dependencies.

Spring Initializr is available in the Ultimate edition only.

a . Create a new project and select Spring Initializr.Springinitializr

b. Add  project requirements and Maven  properties.

 Maven is a project management and comprehension tool. Maven

c. Select the needed dependencies  (Web, MySql, JPA, security, Dev tools and thymeleaf). Next, enter the project name and  then select finish. You are ready to start.Dependencies

d. The created pom.xml file contains the selected dependencies and other dependencies that will be required for this project.

e. Create the JeutrollApplication class
f.Run application:
Run the application from the IntelliJ by clicking on the run application iconStart spring
In the next step, we will install MySQL server, create a user and jeutrollDB database.

Add a comment