103104105106107108109110
* 打开自定义的拦截器支持,允许通过@Interceptors来支持自定义的拦截器 * @param packages * @return */ public GuiceContext enableCustomInterceptor(String... packages){ this.addModuleProvider(new InterceptorGuiceModuleProvider(packages)); return this; }