Spring Boot how i can add Entity in table?

Viewed 26

pls help me understand how i can add Entity in table.

(Use Tutorial) I create Spring boot app - login/registration/home - with Security, SpringJpa, Hibernate and Thymeleaf. Tutorial it is always cool, but can i do something without that? I decide to expend my app, and understand that i am real beginner. So, my problem, i have home.html page, with Courses (three courses), that i want to add in my new page cabinet.html one of this course. New page have empty bootstrap table, but i want add course and see this entity in table!

link to view html page https://drive.google.com/drive/folders/1dnn-IKkpaBeouyqnGU13YLf1GBPVd_jQ?usp=sharing

My Question, after registration and login, what i need to write in backend, that on of my course appear after (click button add) in List Table in the Cabinet? I think this is may be :

  1. Course Entity (id, string name, string date) that saves to MySQL. Courses Repository. Courses service with method find-All or save? ServiceImpl, Controller, PostMapping with RequestParam?
  2. And what thameleaf tegs i need to add in my table that field courses entity views in table? Pls help
0 Answers
Related