This commit is contained in:
xiangwbs
2018-06-03 13:43:46 +08:00
parent ec545fb481
commit 2ddba378d7
9 changed files with 25 additions and 9 deletions
@@ -53,10 +53,10 @@ public class TestControl {
private SysUserMapper sysUserMapper;
@Transactional
@PostMapping("save")
public void save(@RequestBody SysUser sysUser) {
int save = sysUserMapper.save(sysUser);
sysUserMapper.save(sysUser);
System.out.println("shiwi");
public JSONObject save(@RequestBody SysUser sysUser) {
List<SysUser> findall = sysUserMapper.findall();
findall.forEach(sysUser1 -> sysUser1.setCreate("aaa"));
return JsonResult.toJSONObj(findall,"");
}
@GetMapping("send")
public void sendM(@RequestParam String[] msg) {
@@ -0,0 +1,16 @@
package com.xwbing;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTest {
@Test
public void contextLoads() {
}
}