Skip to content

Commit

Permalink
添加数据传输测试Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 13, 2019
1 parent 88f00ef commit 1d13ac6
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package qdu.suvvm.onlinesurvey.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
* @Author: SUVVM
* @Date: 2019/11/13 13:54
*/
@RestController
public class TestController {
@PostMapping(value = "/test")
public String test(@RequestParam("text1") String text1, @RequestParam("text2") String text2) {
System.out.println(text1 + " " + text2);
return "yes";
}
}

0 comments on commit 1d13ac6

Please sign in to comment.