Template
提交代码
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.music.controller;
|
||||
|
||||
import com.music.common.Result;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class HealthController {
|
||||
|
||||
@GetMapping("/api/health")
|
||||
public Result<String> health() {
|
||||
return Result.success("OK");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user