retrofit-spring-boot-starter icon indicating copy to clipboard operation
retrofit-spring-boot-starter copied to clipboard

A spring-boot starter for retrofit, supports rapid integration and feature enhancements.(适用于retrofit的spring-boot-starter,支持快速集成和功能增强)

Results 31 retrofit-spring-boot-starter issues
Sort by recently updated
recently updated
newest added

2022-08-07 22:18:39.069 WARN 29032 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sourceOkHttpClientRegistry' defined in class path resource...

[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'com.xx.HttpApi' that could not be found. Action: Consider defining a...

不生效的原因是因为: RetrofitInvocationHandler 里面抛的异常不是: RetrofitBlockException. ![image](https://github.com/LianjiaTech/retrofit-spring-boot-starter/assets/21332033/47ad01b5-7842-4751-9510-ff78b10c09fa) 升级版本后, RetrofitClient 的接口无法扫描到, 导致注入不进来.

启动报错: A component required a bean of type 'com.github.lianjiatech.retrofit.spring.boot.config.RetrofitConfigBean' that could not be found.\ 3.1.5 com.github.lianjiatech:3.0.2 or 3.0.3

com.github.lianjiatech retrofit-spring-boot-starter 3.0.2 该版本的拦截器 Method method = ((Invocation)Objects.requireNonNull((Invocation)request.tag(Invocation.class))).method(); 要求必须存在Invocation、Method ,兼容性不够好,旧项目有些事直接使用httpClient的,引入retrofit-spring-boot-starter之后,自动注入此拦截器并每次都会拦截,然后由于没有Invocation、Method所以报错了,我理解所有的拦截器都不要强制性要求存在Invocation、Method 这些,没有,那就当做普通的http请求来调用

how can i trust all certificates when use @RetrofitClient. Exception: RetrofitIOException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

查阅源码发现@RetrofitClient注解并非直接注入组件,而是通过注册器扫面注解注入组件。在正常的SpringBoot运行时,一切都没有问题。但是当我们使用SpringBoot-test进行单元测试,似乎这些组件没有被正确加载,报错信息如下。 ```text org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cn.edu.njupt.retrofittest.RetrofitTestApplicationTests': Unsatisfied dependency expressed through field 'weatherService': No qualifying bean of type 'cn.edu.njupt.retrofittest.service.WeatherService' available: expected at least 1 bean which qualifies as...

提一个需求,能不能把retry中出错的请求日志也打印一下 现在只有最后一次请求的日志

环境:jdk17 retrofit-spring-boot-starter 3.0.2

如题, 能否在 `com.github.lianjiatech.retrofit.spring.boot.log.LoggingInterceptor` 里加一个 `redactHeader` 的功能