수정 및 PrettyPrintController 스캔 추가.
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
<context:component-scan
|
||||
base-package="com.eactive.eai.authserver" />
|
||||
<context:component-scan
|
||||
base-package="com.eactive.eai.custom.pretty" />
|
||||
<context:component-scan
|
||||
base-package="com.eactive.eai.adapter" />
|
||||
<context:component-scan
|
||||
|
||||
@@ -6,8 +6,6 @@ import java.util.Optional;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
@@ -20,12 +18,7 @@ import com.eactive.eai.common.message.EAIMessage;
|
||||
import com.eactive.eai.common.message.EAIMessageManager;
|
||||
import com.eactive.eai.common.message.ServiceMessage;
|
||||
import com.eactive.eai.common.util.Logger;
|
||||
import com.eactive.eai.common.util.MessageUtil;
|
||||
import com.eactive.eai.transformer.engine.TransformEngine;
|
||||
import com.eactive.eai.transformer.engine.Transformer;
|
||||
import com.eactive.eai.transformer.layout.Layout;
|
||||
import com.eactive.eai.transformer.message.JSONMessage;
|
||||
import com.eactive.eai.transformer.message.Message;
|
||||
import com.eactive.eai.transformer.message.MessageFactory;
|
||||
import com.eactive.eai.transformer.transform.Transform;
|
||||
import com.eactive.eai.transformer.transform.TransformManager;
|
||||
@@ -38,7 +31,7 @@ public class PrettyPrintController {
|
||||
private static final String FALLBACK_ERROR_JSON =
|
||||
"{ \"error\": true, \"result\": \"occur error building responseMessage.\" }";
|
||||
|
||||
@RequestMapping(value = "/PrettyPrint.json", method = RequestMethod.POST, consumes = "application/json", produces = "application/json; charset=UTF-8")
|
||||
@RequestMapping(value = "/PrettyPrint", method = RequestMethod.POST, consumes = "application/json", produces = "application/json; charset=UTF-8")
|
||||
@ResponseBody
|
||||
public ResponseEntity<String> tokenJson(@RequestBody PrettyPrintRequest transFormRequest, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
|
||||
Reference in New Issue
Block a user