使用Thymeleaf模板引擎渲染web视图

This commit is contained in:
程序猿DD
2016-06-27 21:35:21 +08:00
parent 765dd8b579
commit 70570d5d1f
+1
View File
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
@Controller @Controller
public class HelloController { public class HelloController {
@ResponseBody
@RequestMapping("/hello") @RequestMapping("/hello")
public String hello() { public String hello() {
return "Hello World"; return "Hello World";