ApiBehaviorOptions 统一模型验证配置不生效

ApiBehaviorOptions 的统一模型验证配置一定要放到(.AddMvc)后面。

原文地址:https://www.cnblogs.com/Qos8/p/10297282.html