package com.zy.asrs.controller; 
 | 
  
 | 
import com.zy.asrs.service.impl.MainServiceImpl; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.web.bind.annotation.GetMapping; 
 | 
import org.springframework.web.bind.annotation.RestController; 
 | 
  
 | 
/** 
 | 
 * Created by vincent on 2020/9/12 
 | 
 */ 
 | 
@RestController 
 | 
public class TestController { 
 | 
  
 | 
    @Autowired 
 | 
    private MainServiceImpl mainService; 
 | 
  
 | 
    @GetMapping("/test") 
 | 
    public String test(){ 
 | 
        mainService.test(); 
 | 
        return "ok"; 
 | 
    } 
 | 
} 
 |