StatusController.java 547 Bytes
package com.viontech.controller;

import com.viontech.vo.ResultVo;
import net.sf.jsqlparser.util.validation.metadata.DatabaseException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: zhuhai
 * Date: 2023-04-04
 * Time: 17:36
 */
@RestController
public class StatusController {


    @GetMapping("/keepAlive")
    public ResultVo keepAlive() {
        return ResultVo.success(new Date());
    }


}