Spring Data JPA Using database MYSQL

Published: 04 December 2017
on channel: Programming Tutorial
944
3

#springboot #springjpa #mysql #jpa
*others tutorial*

Spring security playlist
1.    • Protected Api Using Acces token or jwt in ...  



1. Run mysql service and create Database(example_spring_data_jpa)
2. create project using maven in intellij IDEA
3. add dependency Spring JPA in file POM.xml
4. reimport
5. create application.properties file in under folder resources(for connection configuration)
6. create Entity class example(student)
7. Create Main class
8. Create Stundet interface and extend into CrudRepository
9. Create Controller class
10. Run app using CMD(when run table will create automate in database) i edited in structure folder
12. call url to save data(try to add data)http://localhost:8080/example/add?name=First&address=Indonesia
13. call url to get all data http://localhost:8080/example/all


Thank you, Happy Learning and Happy Sharing!!!


On this page of the site you can watch the video online Spring Data JPA Using database MYSQL with a duration of online in good quality, which was uploaded by the user Programming Tutorial 04 December 2017, share the link with friends and acquaintances, this video has already been watched 944 times on youtube and it was liked by 3 viewers. Enjoy your viewing!