26 lines
613 B
Java
26 lines
613 B
Java
|
|
package com.gunshi.project.xyt.controller;
|
||
|
|
|
||
|
|
import io.swagger.v3.oas.annotations.Operation;
|
||
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 类描述
|
||
|
|
*
|
||
|
|
* @author lyf
|
||
|
|
* @version 1.0.0
|
||
|
|
* @since 2024-01-18
|
||
|
|
*/
|
||
|
|
@RestController
|
||
|
|
@Tag(name = "Ping")
|
||
|
|
@RequestMapping("/ping")
|
||
|
|
public class PingController {
|
||
|
|
@Operation(summary = "测试接口")
|
||
|
|
@GetMapping("")
|
||
|
|
public String ping() {
|
||
|
|
return "pong";
|
||
|
|
}
|
||
|
|
}
|