修改bug
This commit is contained in:
@@ -70,6 +70,8 @@ public interface ValidMessage {
|
||||
String SEARCH_DATA_ERROR = "搜索值过长,请检查搜索参数";
|
||||
String SPECIAL_REGEX = "搜索值包含特殊字符";
|
||||
|
||||
String NAME_SPECIAL_REGEX = "包含特殊字符";
|
||||
|
||||
String DATA_TOO_LONG = "参数过长,请检查参数";
|
||||
|
||||
}
|
||||
|
||||
@@ -632,5 +632,42 @@ public class RestTemplateUtil {
|
||||
return restTemplate;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
String s1 = "runoob";
|
||||
String s2 = "runoob";
|
||||
System.out.println(s1 == s2);
|
||||
|
||||
String body ="[\n" +
|
||||
" {\n" +
|
||||
" \"monitorId\": [\n" +
|
||||
" \"id1\",\n" +
|
||||
" \"id2\",\n" +
|
||||
" \"id3\"\n" +
|
||||
" ],\n" +
|
||||
" \"dataType\": \"1\",\n" +
|
||||
" \"timeInterval\": [\n" +
|
||||
" \"2024-01-01 12:52:51~2024-01-01 13:53:00\",\n" +
|
||||
" \"2024-01-02 12:52:51~2024-01-02 13:53:00\",\n" +
|
||||
" \"2024-01-03 12:52:51~2024-01-03 13:53:00\",\n" +
|
||||
" \"2024-01-04 12:52:51~2024-01-04 13:53:00\"\n" +
|
||||
" ]\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"monitorId\": [\n" +
|
||||
" \"id4\"\n" +
|
||||
" ],\n" +
|
||||
" \"dataType\": \"0\",\n" +
|
||||
" \"timeInterval\": [\n" +
|
||||
" \"2024-01-01 12:40:00~2024-01-01 23:59:59\"\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
"]";
|
||||
ResponseEntity<Object> post = RestTemplateUtil.post("http://192.168.1.105:10004/powerQuality/recall", body, Object.class);
|
||||
System.out.println(post);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user