728x90

JSONException and JSONObject components called from JSON Library were not imported in Jenkins compiling stage.

Components are not included in or are not recognized at the JVM level, which is expected.

 

Despite these issues causing some users, I have no idea why they happen.

 

Change Below 

import org.springframework.boot.configurationprocessor.json.JSONObject;
import org.springframework.boot.configurationprocessor.json.JSONException;

 

to

import org.json.JSONException;
import org.json.JSONObject;

 

Also, import JSON directly

implementation 'org.json:json:20240303'

 

'Java > Spring Boot JPA' 카테고리의 다른 글

[Spring Batch] 조져보자 meta table  (0) 2024.04.29
생성자와 Builder패턴  (1) 2024.04.26
JobParametersIncrementer  (0) 2024.04.03
Running Jobs from within a Web Container  (31) 2024.04.03
Builder and AllArgsConstructor Annotation  (31) 2024.04.02

+ Recent posts