sudo apt-get install openjdk-17-jre
Dependencies: Spring Web
https://spring.io/guides/gs/rest-service/
annotations | Beschreibung |
---|---|
@RestController | Der Controller verarbeitet RESTful services |
@GetMapping/@RequestMapping(method=GET) | HTTP-Anfragen z.B GET/POST/PUT/DELETE |
@Bean | https://docs.spring.io/spring-javaconfig/docs/1.0.0.M4/reference/html/ch02s02.html |
@Configuration | https://docs.spring.io/spring-javaconfig/docs/1.0.0.M4/reference/html/ch02.html |
@Autowired | https://www.baeldung.com/spring-autowire |
@RequestParam(value = "name", defaultValue = "World") | set default parameter |
@NotNull | check is not null |
@Size(min=2, max=30) | range from x to y |
@Min(18) | min value |
Learn JAVA - rheinwerk-verlag.de
- Beginner guide: https://www.youtube.com/watch?v=vtPkZShrvXQ
- Docker: https://spring.io/guides/gs/spring-boot-docker/
- kubernetes: https://spring.io/guides/topicals/spring-on-kubernetes/
- Gateway: https://spring.io/guides/gs/gateway/
- Google api e.g: https://spring.io/guides/gs/messaging-gcp-pubsub/
- Redis: https://spring.io/guides/gs/messaging-redis/