Remove long package names from samples

Long package names are really unnecessary in samples and they
just clutter things up. Also Spring Loaded doesn't work with
org.sfw packages, so to demo that technology you need a
different package name.
This commit is contained in:
Dave Syer
2013-12-31 08:40:21 +00:00
parent 3c7361fb3e
commit f448e79f29
124 changed files with 223 additions and 222 deletions

View File

@@ -0,0 +1,23 @@
package sample.jsp;
import java.util.Date;
import java.util.Map;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class WelcomeController {
@Value("${application.message:Hello World}")
private String message = "Hello World";
@RequestMapping("/")
public String welcome(Map<String,Object> model) {
model.put("time", new Date());
model.put("message", message );
return "welcome";
}
}