Encapsulate a result object, add different information to the result object, and feed it back to the front desk. The front end gets the data: content in json and prints out the prompt information.
@ResourceMapping("denyApproval")
public RpcResult<Object> denyApproval(@RequestParams
AssetsOrderExt assetsOrderExt, ErrorContext error, Context context) {
RpcResult<Object> extDataResult = new RpcResult<Object>();
If it is an error, you can catch the exception, but if a picture is missing a few K, it is considered an exception, so you can only use third-party tools
Encapsulate a result object, add different information to the result object, and feed it back to the front desk. The front end gets the data: content in json and prints out the prompt information.
} else {
Just report the exception directly in the background and return the status code 500 directly.
log log....
If you refer to: Browser=》Server=》Browser
So if you want to get feedback information, you need some third-party plug-ins, such as: https://blueimp.github.io/
If it is an error, you can catch the exception, but if a picture is missing a few K, it is considered an exception, so you can only use third-party tools