All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.erupt.cloud.node.controller.NodeController Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
package xyz.erupt.cloud.node.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.erupt.cloud.common.consts.CloudRestApiConst;
import xyz.erupt.cloud.node.config.EruptNodeProp;

import javax.annotation.Resource;

/**
 * @author YuePeng
 * date 2022/3/1 23:17
 */
@RestController
public class NodeController {

    @Resource
    private EruptNodeProp eruptNodeProp;

    @GetMapping(CloudRestApiConst.NODE_HEALTH)
    public String health() {
        return eruptNodeProp.getNodeName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy