io.edurt.datacap.service.converter.DynamicJsonViewHttpMessageConverter Maven / Gradle / Ivy
The newest version!
package io.edurt.datacap.service.converter;
import com.fasterxml.jackson.databind.ObjectMapper;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
@Slf4j
@RestControllerAdvice
@SuppressFBWarnings(value = {"EI_EXPOSE_REP2"})
public class DynamicJsonViewHttpMessageConverter
implements ResponseBodyAdvice
© 2015 - 2025 Weber Informatics LLC | Privacy Policy