Simple Java Spring boot web serverUsing curl to preview the response:❯ curl localhost:8080/hello\?name=LearnAWS.io Hello LearnAWS.io! It's 2024-06-19T22:18:38.787292626Z% How to run this? Make sure you have Java & JDK installed in your systemInstall mvn for managing dependenciesStart the spring web server using mvnmvn spring-boot:runCode for GET routes@GetMapping("/") publicResponseEntity<String> welcome() { Stringbody = """ <h1>Welcome to Spring boot</h1> <p>Made by <a href='https://learnaws.io'>LearnAWS.io</a> """; returnResponseEntity.ok().header("Content-Type", "text/html").body(body); } @GetMapping("/hello") publicStringhello(@RequestParam(value = "name", defaultValue = "World") Stringname) { returnString.format("Hello %s! It's %s", name, Instant.now()); }