fix: 0.0.4.2
限定异常拦截和返回值扫描的包路径 Signed-off-by: byteblogs168 <598092184@qq.com>
This commit is contained in:
parent
c7aee3538e
commit
d928923d05
@ -14,7 +14,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
@Slf4j
|
||||
@ControllerAdvice
|
||||
@ControllerAdvice(basePackages = {"com.x.retry.client.core", "com.x.retry.server"})
|
||||
public class GlobalRestfulResponseBodyAdvice implements ResponseBodyAdvice<Object> {
|
||||
|
||||
@Override
|
||||
|
@ -30,7 +30,7 @@ import java.util.stream.Collectors;
|
||||
* @author: byteblogs
|
||||
* @date: 2019/09/30 17:02
|
||||
*/
|
||||
@ControllerAdvice
|
||||
@ControllerAdvice(basePackages = {"com.x.retry.server", "com.x.retry.client.core"} )
|
||||
@Slf4j
|
||||
@ResponseBody
|
||||
public class RestExceptionHandler {
|
||||
|
Loading…
Reference in New Issue
Block a user