修改误提代码
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package com.adc.da;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
@@ -14,19 +12,6 @@ public class ApplicationTests {
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
String json = "[{\n" +
|
||||
" \"id\":\"用户id111,字符串逗号拼接\",\n" +
|
||||
" \"name\":\"部门id,字符串逗号拼接\",\n" +
|
||||
" \"selecteddepartCodes\":\"部门code,字符串逗号拼接\"\n" +
|
||||
"},"+
|
||||
"{\n" +
|
||||
" \"id\":\"用户id222,字符串逗号拼接\",\n" +
|
||||
" \"orgCode\":\"部门id,字符串逗号拼接\",\n" +
|
||||
" \"selecteddepartCodes\":\"部门code,字符串逗号拼接\"\n" +
|
||||
"}]";
|
||||
|
||||
List<OOEO> ooeo = JSONObject.parseArray(json, OOEO.class);
|
||||
System.out.println("ok");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user