package com.nantian.cloud.dbcapp.unit;

import com.nantian.sc.cloud.common.core.util.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

//@ControllerAdvice
public class ExceptionUnit {
    @ExceptionHandler( RuntimeException.class)
    @ResponseBody
    public R exceptionHandler(){
      return R.ok("500","请求参数错误");
    }
}
