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; ...@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
public class HelloController { public class HelloController {
@RequestMapping("/hello") @RequestMapping("/hello")
public String index() { public String index(@RequestParam(required = false) String name) {
return "Greetings from Spring Boot! with another change"; 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