SOURCE CODE (GitHub Link)
https://github.com/VikramThakur8/Enqu...
PURPOSE:
This video covers CRUD Operations using Spring Data JpaRepository interface. Thymeleaf Template is used in View Layer instead of JSP for Server Side View. And Thymeleaf th:insert, form tags, th:action, th:object, th:field and th:each tags for iteration are also covered.
TECHNOLOGY USED:
Java 8, Spring Boot, Spring Data JPA, MySQL Database, NetBeans IDE, Hibernate JPA Implementation, Maven, MySQL Workbench, JSON, MicroServices.
PREVIOUS VIDEO IN CASE YOU MISSED :
• 2 - Spring Data JPA | Spring Boot | Projec...
SOURCE CODE : controller method :
public String save(@ModelAttribute EnquirySource es) {
enquirySourceRepository.save(es);
return "redirect:/sources";
}
@ModelAttribute("enquirySourceList")
public List getEnquirySourceList(){
return enquirySourceRepository.findAll();
}