TestController.java 696 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.uas.eis.controller.test;
  2. import com.uas.eis.service.test.TestService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.RestController;
  6. /**
  7. * Created by zdw
  8. * 2018-09-18 18:47.
  9. */
  10. @RestController
  11. @RequestMapping("/test")
  12. public class TestController {
  13. @Autowired
  14. private TestService testService;
  15. @RequestMapping(value = "/master")
  16. public String test(String master){
  17. testService.t2(master);
  18. return "ssss";
  19. }
  20. @RequestMapping(value = "/test")
  21. public String test1(){
  22. return testService.t3();
  23. }
  24. }