Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot Spring引导拦截服务方法_Spring Boot_Interceptor - Fatal编程技术网

Spring boot Spring引导拦截服务方法

Spring boot Spring引导拦截服务方法,spring-boot,interceptor,Spring Boot,Interceptor,我有这个服务由spring boot管理 @Service public class SystemSecuredServiceBean implements SystemSecuredService { @Override public <S extends BaseEntity> S save(S s) { return null; } } @服务 公共类SystemSecuredServiceBean实现Syste

我有这个服务由spring boot管理

@Service
public class SystemSecuredServiceBean implements SystemSecuredService {

    @Override
    public <S extends BaseEntity> S save(S s) {           
        return null;
    }
}
@服务
公共类SystemSecuredServiceBean实现SystemSecuredService{
@凌驾
公共存储{S}
返回null;
}
}
我想在方法调用之前拦截,是否可能?

是的,您可以使用直接集成在核心Spring框架中的

在您的情况下,之前的
@注释似乎是合适的

你可以阅读详细信息