ProductManager - by Spring boot
Manual Initialization (optional) If you want to initialize the project manually rather than use the links shown earlier, follow the steps given below: Navigate to https://start.spring.io. This service pulls in all the dependencies you need for an application and does most of the setup for you. Choose either Gradle or Maven and the language you want to use. This guide assumes that you chose Java. Click Dependencies and select Spring Web. Click Generate. Download the resulting ZIP file, which is an archive of a web application that is configured with your choices.
If your IDE has the Spring Initializr integration, you can complete this process from your IDE.
Please follow this table of content:
- Create MySQL Database
- Create Maven Project in Eclipse
- Configure Data Source Properties
- Code Domain Model Class
- Code Repository Interface
- Code Service Class
- Code Spring MVC Controller Class
- Code Spring Boot Application Class
- Implement List Products Feature
- Implement Create Product Feature
- Implement Edit Product Feature
- Implement Delete Product Feature
- Test and package the Spring Boot CRUD Web Application
In this Project useing dependencies>>
org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-devtools runtime true mysql mysql-connector-java runtime org.springframework.boot spring-boot-configuration-processor true org.springframework.boot spring-boot-starter-test test org.junit.vintage junit-vintage-engineSpplication Properties > spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/sales?createDatabaseIfNotExist=true spring.datasource.username=root spring.datasource.password=12345 server.port=8082