自定义 过分请求异常
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package com.sqx.modules.callback;
|
||||
import com.sqx.common.exception.CzgException;
|
||||
import com.sqx.modules.callback.service.UniAdCallbackRecordService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@@ -31,4 +32,9 @@ public class UniCallBackController {
|
||||
log.info("接收到uni-ad广告完播回调,回调信息: {}", dto);
|
||||
return ResponseEntity.ok(uniCallBackService.adCallBack(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/testException")
|
||||
public String testException() throws CzgException {
|
||||
throw new CzgException("测试异常");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user