Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tugas Beancamp Batch 1 Sesi 2 (Tema Database / Persistence Object).
- 1. Buat Spring Boot Project dengan https://start.spring.io/ dengan dependencies:
- 1. Spring Web
- 2. Spring Data JPA
- 3. PostgreSQL Driver
- 4. DevTool
- * Atau download langsung dari sini: https://start.spring.io/starter.zip?type=maven-project&language=java&bootVersion=2.2.6.RELEASE&baseDir=demo&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&packaging=jar&javaVersion=1.8&dependencies=web,data-jpa,postgresql,devtools
- 2. Buat Entity berikut:
- - User
- - Long id
- - String username
- - String password
- - String address
- - String phone
- 3. Buat RESTful API endpoints sederhana berikut
- - localhost:8000/users (GET | Get group of existing users)
- - localhost:8000/users (POST | Save new User)
- - localhost:8000/users/{id} (PUT | Update existing User)
- - localhost:8000/users/{id} (GET | Get single User)
- - localhost:8000/users/{id} (delete | Delete single User)
- 4. Format pengumpulan Nama_Email_Tugas2(dd-mm-yyyy).zip
Advertisement
Add Comment
Please, Sign In to add comment