//package com.vote.system.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import com.fasterxml.jackson.core.JsonParser;
//
//@Configuration
//public class JacksonConfig{
//
//    @Bean
//    public ObjectMapper objectMapper() {
//        ObjectMapper objectMapper = new ObjectMapper();
//// 启用解析JSON注释的功能
//        objectMapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
//        return objectMapper;
//    }
//}