✅Test: 增加 Controller 测试
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package cn.hezhaohui.thumb.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("health")
|
||||
public class HealthController {
|
||||
|
||||
@GetMapping
|
||||
public String health() {
|
||||
return "Hello! This is my wonderland.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user