springboot中使用@RequestBody获取传参实体时,如果传参json的属性在接收实体中不存在会报错如下
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized field \"dishName2\"
通过在实体类上增加注解
@JsonIgnoreProperties(ignoreUnknown = true)
可以解决问题。
springboot中使用@RequestBody获取传参实体时,如果传参json的属性在接收实体中不存在会报错如下
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized field \"dishName2\"
通过在实体类上增加注解
@JsonIgnoreProperties(ignoreUnknown = true)
可以解决问题。
異常現象: 異常原因: 數據源獲取異常 解決方法: git config --global url."https://".insteadOf git:// npm install
system.runtime.interopservices.SEHexception :external component has thrown