Commit 29bf7a76 by 陶光胜

配置表

parent c760466d
......@@ -213,7 +213,7 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
if(StringUtils.isNotBlank(s)){
String[] split = s.split(",");
if(split.length == 2){
JSONObject json = new JSONObject();
Map<String, Object> json = new HashMap();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
json.put("start", sdf.parse(split[0]));
......@@ -237,6 +237,15 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
return criteriaList;
}
public static void main(String[] args){
Date date = new Date();
JSONObject jsonObject = new JSONObject();
jsonObject.put("date", date);
Map<String, Object> map = new HashMap<>();
map.put("date", date);
System.out.println("map = " + map);
System.out.println("date = " + JSON.toJSONString(jsonObject));
}
private void extendInterface(String extInterface, String param){
Config config = ConfigService.getConfig("COMMON.4.0-dubbo");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment