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

我有个需求就是发送请求之后能够通过配置响应拦截器来实现打印日志 因为可能不是每次请求都是我想要的结果,可能会有些意料之外的结果,如果这个时候能够看到完整的响应的话就更容易排错 (希望是完整的响应数据,而不是按照我的实体类来打印,因为我的实体类可能无法包含所有的响应数据)

com.squareup.retrofit2 retrofit 2.11.0 https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit/2.11.0

当配置文件为 retrofit.auto-set-prototype-scope-for-path-math-interceptor = false retrofit.global-log.enable=true retrofit.global-log.log-strategy=None retrofit.global-log.log-level=error 项目运行过程中,每次请求总是有以下错误 2024-03-07 10:26:58.865 ERROR 40676 --- [nio-8090-exec-1] c.g.l.r.s.boot.log.LoggingInterceptor : 排查发现主要是,当聚合模式开启时候 buffer默认初始化的时候加了一个回车换行符导致 我使用的版本是 2.3.14 , 但是日志模块原则上跟Springboot的版本无关。 请 `添明` 判断代码添加位置是否合理。

功能:支持使用注解或属性文件自定义日志 logger 名字。 如果结合动态日志级别,可以实现运行时修改 logger 日志级别。

功能:支持使用注解或属性文件自定义日志 logger 名字。 如果结合动态日志级别,可以实现运行时修改 logger 日志级别。 > cherry-pick from master 2376d197ceff1411d32313395b95dd8c2f7877ad

![image](https://github.com/LianjiaTech/retrofit-spring-boot-starter/assets/1145830/ffb43d12-360b-45e1-ac9d-6d313efea3e7) **Server 注册服务host:port** ```java import com.gitee.melin.bee.util.NetUtils; import com.gitee.melin.bee.util.ThreadUtils; import com.google.common.collect.Sets; import org.apache.commons.lang3.ArrayUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.env.Environment; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service;...

如果请求参数名与方法参数名相同,是否可以省去retrofit2.http.Query 注解? 如果参数比较多,每个都要提供添加 retrofit2.http.Query 注解,挺麻烦的。 ``` java @GET("downloadYarnLog") @Override Response downloadYarnLog( @Query("tenantId") Long tenantId, @Query("clusterCode") String clusterCode, @Query("engineCode") String engineCode, @Query("applicationId") String applicationId); ``` 如果简化更方便 ``` java @GET("downloadYarnLog") @Override Response...

使用httpclient请求接口total字段有有值,使用 retrofit返回字段total 不能反序列化(使用版本2.4.1) ![微信图片_20240702124956](https://github.com/LianjiaTech/retrofit-spring-boot-starter/assets/34088314/03a037cb-c0a9-48c0-bd45-354dbf70400c)

类似问题看到有同学提过,建议在Spring-Boot3.x中替换,不知道为什么删除了PR 。 #166