package com.darwinsys.springbootdemo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller()
public class NotAServlet {

	@RequestMapping("/notaservlet")
	protected String doWork(@RequestParam(value="name") String name, Model model) {
		model.addAttribute("greets", String.format("<html><h1>Hello %s!!</h1>", name));
		return "hello";
	}
}

@@ -120,19 +120,22 @@
 ui.Model
+Map
 ;%0D%0A
-
 import o
@@ -190,16 +190,79 @@
 pping;%0D%0A
+import org.springframework.web.bind.annotation.RequestMethod;%0D%0A
 import o
@@ -379,16 +379,22 @@
 Mapping(
+value=
 %22/notase
@@ -403,21 +403,44 @@
 let%22
-)%0D%0A%09protected
+, method=RequestMethod.GET)%0D%0A%09public
  Str
@@ -464,22 +464,16 @@
 stParam(
-value=
 %22name%22) 
@@ -490,16 +490,19 @@
 e, Model
+Map
  model) 
@@ -504,16 +504,63 @@
 del) %7B%0D%0A
+%09%09System.out.println(%22NotAServlet.doWork()%22);%0D%0A
 %09%09model.
@@ -578,16 +578,19 @@
 e(%22greet
+ing
 s%22, Stri

Clean up; use ModelMap not Model; only GET method.