package com.template.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试服务")
@RestController
@RequestMapping("/test")
public class TestController {
    @Value("${env}")
    private String env;
    
    @GetMapping("/getEnv")
    @ApiOperation("查询当前环境")
    public String getEnv(){
        return env;
    }
}
