Java 类org.springframework.data.repository.init.Jackson2ResourceReader 实例源码

项目:concourse-spring-music    文件:AlbumRepositoryPopulator.java   
public AlbumRepositoryPopulator() {
    ObjectMapper mapper = new ObjectMapper();
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    resourceReader = new Jackson2ResourceReader(mapper);
    sourceData = new ClassPathResource("albums.json");
}
项目:spring-music    文件:AlbumRepositoryPopulator.java   
public AlbumRepositoryPopulator() {
    ObjectMapper mapper = new ObjectMapper();
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    resourceReader = new Jackson2ResourceReader(mapper);
    sourceData = new ClassPathResource("albums.json");
}