TestController.java 948 Bytes
package org.nafmii.nafmiiadmin.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.nafmii.nafmiiadmin.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:zhoujh
 * @Function:TODO
 * @date 2021/4/20 15:46
 * @ClassName:
 * @version:
 * @remark:
 */
@RestController
@RequestMapping("web/nafmii/test/")
@Api(tags = "1.0.0", description = "测试")
public class TestController {

    @Autowired
    private TestService service;

    @ApiOperation( value = "测试",notes = "测试")
    @GetMapping("search")
    public  String  search(){
        String test = service.search();
        return test;
    }
}