This chapter covers the basics of annotations used for dependency injection.
Here I learned the most basic type of injection is based on Beans. Other types of injections are based on Beans.. That's why in the first chapter I could track the bean added to the application context based on context.getBean("nameOfBean")
I like the fact this chapter shows how to to see videos and add others based on html and also through json. What I don't like is going beyond with React. As for me my goal is to move business logic from the front-end to the back-end. I will concentrate in applying restful network calls and requests.
Listing all videos
curl localhost:8080/api/videos
response:
[{"name":"Need HELP with your SPRING BOOT 3 App?"},{"name":"Don't do THIS to your own CODE!"}]
Adding a new video
curl -v -X POST localhost:8080/api/videos -d '{"name": "Learning Spring Boot 3"}' -H 'Content-type:application/json'
response
{"name":"Learning Spring Boot 3"}
Html client
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Initializer
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
These additional references should also help you: