This is a web framework to develop application backends in Java.
A easier version of creating Java Spring XML.
Uses Apache Tomcat under the hood.
Better for Microservices.
Initialization
https://start.spring.io/ Add the dependency:
- Spring Web
Boilerplate
@RestController
@RequestMapping("/api")
public class MyController {
@GetMapping("/hello")
public String sayHello() {
return "Hello, World!";
}
}