Skip to content

Latest commit

 

History

History
83 lines (73 loc) · 2.82 KB

README.md

File metadata and controls

83 lines (73 loc) · 2.82 KB

ProductManager

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:

  1. Create MySQL Database
  2. Create Maven Project in Eclipse
  3. Configure Data Source Properties
  4. Code Domain Model Class
  5. Code Repository Interface
  6. Code Service Class
  7. Code Spring MVC Controller Class
  8. Code Spring Boot Application Class
  9. Implement List Products Feature
  10. Implement Create Product Feature
  11. Implement Edit Product Feature
  12. Implement Delete Product Feature
  13. 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-engine

Spplication 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