使用freemarker模板引擎
This commit is contained in:
Executable → Regular
+1
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
public class HelloController {
|
public class HelloController {
|
||||||
|
|
||||||
@RequestMapping("/hello")
|
@RequestMapping("/hello")
|
||||||
|
@ResponseBody
|
||||||
public String hello() {
|
public String hello() {
|
||||||
return "Hello World";
|
return "Hello World";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user