https://github.com/seanmisra/spring-coding-exercises
coding exercises with spring
https://github.com/seanmisra/spring-coding-exercises
Last synced: 3 months ago
JSON representation
coding exercises with spring
- Host: GitHub
- URL: https://github.com/seanmisra/spring-coding-exercises
- Owner: seanmisra
- Created: 2023-05-13T18:35:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T01:27:02.000Z (about 2 years ago)
- Last Synced: 2025-01-10T14:41:08.015Z (5 months ago)
- Language: Java
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-coding-exercises
Commits correspond to each exercise
1. Spring Boot setup
2. GET endpoint example (return "hello world")
3. POST endpoint example (return an object)
4. Use @Autowired for dependency injection (inject service in controller) - field injection
5. Use dependency injection - constructor injection
6. Use dependency injection with @Autowired - setter injection
7. Use JPA/H2 to store/retrieve data in-memory (add GET endpoint)
8. JPA/H2 - create/update/delete data (POST, PUT, DELETE endpoints)