opensso切换生产环境

This commit is contained in:
liyawei
2022-05-30 17:45:17 +08:00
parent 8001995694
commit 6e716b5367
3 changed files with 26 additions and 7 deletions
@@ -1,16 +1,32 @@
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
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");
}
}