Skip to content

Commit

Permalink
Change to CachedSkillPayloadResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
binchoo committed Jun 26, 2022
1 parent 710b96e commit f4ef6fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
@Slf4j
@RequiredArgsConstructor
@Component
public class ServletRequestSkillPayloadResolver implements SkillPayloadResolver {
public class CachedSkillPayloadResolver implements SkillPayloadResolver {

private final ObjectMapper mapper;
private final ObjectMapper objectMapper;

@Override
public SkillPayload resolve(HttpServletRequest request) {
Expand All @@ -46,7 +46,7 @@ private byte[] getCachedContent(ContentCachingRequestWrapper request) {

private SkillPayload deserialize(byte[] requestBody) throws IOException {
try {
return mapper.readValue(requestBody, SkillPayload.class);
return objectMapper.readValue(requestBody, SkillPayload.class);
} catch (IOException e) {
log.debug("Failed to deserialize a request body", e);
log.debug("Payload: {}", requestBody);
Expand Down

0 comments on commit f4ef6fe

Please sign in to comment.