|
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.persagy.bdtp.adm.entity.AdmObject;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
@@ -13,11 +12,10 @@ import org.springframework.stereotype.Component;
|
|
|
@Component
|
|
|
public class ObjectMapper4Tx {
|
|
|
|
|
|
- private final ObjectMapper mapper;
|
|
|
+ private ObjectMapper mapper;
|
|
|
|
|
|
- @Autowired
|
|
|
- public ObjectMapper4Tx(ObjectMapper mapper) {
|
|
|
- this.mapper = mapper;
|
|
|
+ public ObjectMapper4Tx() {
|
|
|
+ this.mapper = new ObjectMapper();
|
|
|
configMapper();
|
|
|
}
|
|
|
|