Commit c727b9d0 authored by Sumaiyya Burney's avatar Sumaiyya Burney

Update src/main/java/com/nisum/cicd/training/springbootrefapp/controllers/HelloController.java

parent 243616c9
......@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
public class HelloController {
@RequestMapping("/hello")
public String index() {
return "Greetings from Spring Boot! with another change";
public String index(@RequestParam(required = false) String name) {
return "Greetings " + name + "! - Sumaiyya";
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment