Skip to content

Commit a2f2032

Browse files
committed
json FIX
1 parent 6ce1f75 commit a2f2032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lts-core/src/main/java/com/lts/core/json/JSONFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class JSONFactory {
1717
private static volatile JSONAdapter JSON_ADAPTER;
1818

1919
static {
20-
String json = System.getProperty("lts.logger");
20+
String json = System.getProperty("lts.json");
2121
if ("fastjson".equals(json)) {
2222
setJSONAdapter(new FastJSONAdapter());
2323
} else if ("jackson".equals(json)) {
@@ -29,7 +29,7 @@ public class JSONFactory {
2929
try {
3030
setJSONAdapter(new JacksonJSONAdapter());
3131
} catch (Throwable ignored2) {
32-
LOGGER.error("Please check JSON lib");
32+
throw new JSONException("Please check JSON lib");
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)