Java 类org.springframework.boot.autoconfigure.web.HttpEncodingProperties 实例源码

项目:omero-ms-queue    文件:WebWiring.java   
@Bean
@ConfigurationProperties(prefix = "spring.http.encoding")
@Primary  // override built-in auto config bean
public HttpEncodingProperties httpEncodingProperties() { // (*)
    HttpEncodingProperties props = new HttpEncodingProperties();
    props.setCharset(StandardCharsets.UTF_8);
    props.setForce(false);
    props.setForceRequest(false);
    props.setForceResponse(true);

    return props;
}
项目:ome-smuggler    文件:WebWiring.java   
@Bean
@ConfigurationProperties(prefix = "spring.http.encoding")
@Primary  // override built-in auto config bean
public HttpEncodingProperties httpEncodingProperties() { // (*)
    HttpEncodingProperties props = new HttpEncodingProperties();
    props.setCharset(StandardCharsets.UTF_8);
    props.setForce(false);
    props.setForceRequest(false);
    props.setForceResponse(true);

    return props;
}