We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce1f75 commit a2f2032Copy full SHA for a2f2032
lts-core/src/main/java/com/lts/core/json/JSONFactory.java
@@ -17,7 +17,7 @@ public class JSONFactory {
17
private static volatile JSONAdapter JSON_ADAPTER;
18
19
static {
20
- String json = System.getProperty("lts.logger");
+ String json = System.getProperty("lts.json");
21
if ("fastjson".equals(json)) {
22
setJSONAdapter(new FastJSONAdapter());
23
} else if ("jackson".equals(json)) {
@@ -29,7 +29,7 @@ public class JSONFactory {
29
try {
30
setJSONAdapter(new JacksonJSONAdapter());
31
} catch (Throwable ignored2) {
32
- LOGGER.error("Please check JSON lib");
+ throw new JSONException("Please check JSON lib");
33
}
34
35
0 commit comments