mirror of
https://github.com/valitydev/org-manager.git
synced 2024-11-06 08:25:21 +00:00
fix mapper
This commit is contained in:
parent
3d21995d1e
commit
5c3a4b7fd0
@ -5,19 +5,16 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.rbkmoney.orgmanager.controller.converter.InvitationStatusConverter;
|
||||
import org.openapitools.jackson.nullable.JsonNullableModule;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.format.support.FormattingConversionService;
|
||||
|
||||
@Configuration
|
||||
public class AppConfig {
|
||||
|
||||
@Bean
|
||||
public ObjectMapper objectMapper() {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
@Autowired
|
||||
public void objectMapper(ObjectMapper mapper) {
|
||||
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
mapper.registerModule(new JsonNullableModule());
|
||||
return mapper;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
|
Loading…
Reference in New Issue
Block a user