Please enable JavaScript.
Coggle requires JavaScript to display documents.
Spring Boot (Controllers (Mapping (PutMapping + (path = "{id}"),…
Spring Boot
Controllers
When Clients use Requests to get/Delete or put Data (HTTP Requests), Controllers Manage those requests)
Shows Springboot that this Class is a Controller, meaning it manages Http Requests
Mapping
-
Properties
For example JsonProperty + "name"
Defines the Format of Properties (id, Name etc.)
GetMapping + (optional) (path = "{id})
-
Routes the Variable which is used for the Path, written in Constructor
-
-
-
-
-
Autowiring to Interface
To distinguish between different instances of an Interface, This is Annotated when the Interface is being passed in the Constructor
The name connects to the Repository with the same "name"
-
-
Springapplication.run(Application.class,args)
-
-
-
-
-
-
idea: using general Exception for whole Project that insert Null into Objects that are not instantiated