Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
Binary file added src/main/java/.DS_Store
Binary file not shown.
Binary file added src/main/java/com/.DS_Store
Binary file not shown.
Binary file added src/main/java/com/mkyong/.DS_Store
Binary file not shown.
Binary file added src/main/java/com/mkyong/common/.DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions src/main/java/com/mkyong/common/controller/Hello World GAI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.mkyong.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/welcome")
public class HelloController {

@RequestMapping(method = RequestMethod.GET)
public String printWelcome(ModelMap model) {

model.addAttribute("message", "Spring 3 MVC Hello World");
return "hello GAI world - this is exciting";

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class HelloController {
public String printWelcome(ModelMap model) {

model.addAttribute("message", "Spring 3 MVC Hello World");
return "hello";
return "hello GAI world";

}

Expand Down