使用Thymeleaf模板引擎渲染web视图
This commit is contained in:
Executable → Regular
+1
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user