Просмотр исходного кода

忽略http-requests-log.http

修复MyPropKit无法识别相对路径的bug,现在优先识别绝对路径,再尝试相对路径。
skyfffire 3 лет назад
Родитель
Сommit
ea1665d22d

+ 0 - 444
.idea/httpRequests/http-requests-log.http

@@ -1,444 +0,0 @@
-POST http://localhost:8088/ethmev/findByHashOrBlockOrDataVague
-Content-Type: application/x-www-form-urlencoded
-
-timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T163804.200.json
-
-###
-
-POST http://localhost:8088/ethmev/findByHashOrBlockOrDataVague
-Content-Type: application/x-www-form-urlencoded
-
-dataVague=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T163629.200.json
-
-###
-
-POST http://localhost:8088/ethmev/findByHashOrBlockOrDataVague
-Content-Type: application/x-www-form-urlencoded
-
-dataVague=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T163246.200.json
-
-###
-
-POST http://192.168.101.42:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T161913.200.json
-
-###
-
-POST http://192.168.101.42:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T161436.200.json
-
-###
-
-POST http://192.168.101.42:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T161432.200.json
-
-###
-
-POST http://192.168.101.42:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-31T161222.404.html
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185929.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185928.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185927.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185925.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185923-1.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185923.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185921.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T185917.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T182941.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T181844.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T175503.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T144639.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-29T144629.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T114313.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T114236.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T111657.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T111620.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T111241.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T111144.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-23T110640.200.json
-
-###
-
-POST https://httpbin.org/post
-Content-Type: application/json
-
-{
-  "id": 8b439e4c-87e8-4912-88ff-6719f35f09d6,
-  "price": 689,
-  "ts": 1666492372,
-  "value": "content"
-}
-
-<> 2022-10-23T103253.200.json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T114310.200.json
-
-###
-
-GET http://www.410eth.com:8088/hello
-Content-Type: application/json
-
-<> 2022-10-22T114309.200.txt
-
-###
-
-POST http://{{baseUrl}}/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-###
-
-GET http://{{baseUrl}}/hello
-Content-Type: application/json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-<> 2022-10-22T114159.200.json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-{%:
-client.global.set("lp_address", "0x397FF1542f962076d0BFE58eA045FfA2d347ACa0");:
-client.global.set("timestamp", "12345");:
-client.global.set("auth", "338209cfc53e9db6d344073335e47cf0");:
-%}:
-
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-<> 2022-10-22T114112.400.html
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-{%:
-client.global.set("lp_address", "0x397FF1542f962076d0BFE58eA045FfA2d347ACa0");:
-client.global.set("timestamp", "12345");:
-client.global.set("auth", "338209cfc53e9db6d344073335e47cf0");:
-%}:
-
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-###
-
-POST http://{{%20baseUrl%20}}/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-###
-
-GET http://>%20{%
-client.global.set("lp_address", "0x397FF1542f962076d0BFE58eA045FfA2d347ACa0");:
-client.global.set("timestamp", "12345");:
-client.global.set("auth", "338209cfc53e9db6d344073335e47cf0");:
-%}:
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-<> 2022-10-22T113946.200.json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-{% client.global.set("lp_address", "0x397FF1542f962076d0BFE58eA045FfA2d347ACa0"); %}}
-{% client.global.set("timestamp", "12345"); %}}
-{% client.global.set("auth", "338209cfc53e9db6d344073335e47cf0"); %}}
-lp_address={{lp_address}}&timestamp={{timestamp}}&auth={{auth}}
-
-<> 2022-10-22T113356.200.json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-{% client.global.set("lp_address", "0x397FF1542f962076d0BFE58eA045FfA2d347ACa0"); %}}
-{% client.global.set("timestamp", "12345"); %}}
-{% client.global.set("auth", "338209cfc53e9db6d344073335e47cf0"); %}}
-lp_address={{$lp_address}}&timestamp=1666409620&auth={{$auth}}
-
-<> 2022-10-22T113340.200.json
-
-###
-
-GET https://httpbin.org/get
-
-<> 2022-10-22T112904.200.json
-
-###
-
-GET https://httpbin.org/get
-
-<> 2022-10-22T112903.200.json
-
-###
-
-GET https://httpbin.org/status/404
-
-###
-
-GET https://httpbin.org/status/200
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T112712.200.json
-
-###
-
-POST http://www.410eth.com:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T112549.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0
-&timestamp=12345
-&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T111437.200.json
-
-###
-
-POST http://localhost:8088/swappath/findLevel2PathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T111406.200.json
-
-###
-
-POST http://localhost:8088/swappath/findPathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T110957.200.json
-
-###
-
-POST http://localhost:8088/swappath/findPathByLpAddress
-Content-Type: application/x-www-form-urlencoded
-
-lp_address=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0&timestamp=12345&auth=338209cfc53e9db6d344073335e47cf0
-
-<> 2022-10-22T110355.200.json
-
-###
-

+ 4 - 0
src/main/java/common/utils/config/MyPropKit.java

@@ -14,6 +14,10 @@ public class MyPropKit {
             try {
                 return PropKit.use(new File(fileName));
             } catch (Exception ignored) {}
+
+            try {
+                return PropKit.use(fileName);
+            } catch (Exception ignored) {}
         }
 
         throw new IllegalArgumentException("No available file.");