Comments (4)
不清楚什么场景会出现这种情况。我个人觉得没有配置算是很严重的问题,所以倾向于启动时提前暴露问题。
from retrofit-spring-boot-starter.
@conditionalonproperty 可以考虑支持
from retrofit-spring-boot-starter.
场景是我想将一些经常用的API封装成自己的starter方便引入调用,但是这些API不是每个应用都需要用到,所以想通过是否经过了配置来决定是否生成bean。已经自定义重写了 AutoConfiguredRetrofitScannerRegistrar 和 ClassPathRetrofitClientScanner 来解决了这个问题,但是编码有些硬,想知道有没有更好的方法。
from retrofit-spring-boot-starter.
from retrofit-spring-boot-starter.
Related Issues (20)
- 单元测试/集成测试中如何Mock HOT 3
- 无法获取全局转换器工厂Bean HOT 1
- @GET请求参数能否支持传入对象 HOT 1
- sentinel-core升级到1.8.6熔断无法生效 HOT 9
- retrofit client客户端无法注入 : required a bean of type 'com.xxxx.cloud.rpc.xxxApi' that could not be found. HOT 1
- baseUrl从数据库获取怎么实现 HOT 5
- retrofit能和openfeign一起在一个项目中使用,全局熔断策略不生效 HOT 11
- @FieldMap和@QueryMap只支持Map参数 HOT 2
- 数据转码有bug HOT 1
- springboot + retrofit 如何自定义时间格式 HOT 1
- 拦截器中无法使用@Autowired注入属性 HOT 2
- 自定义OkHttpClient中的属性,需要每个@RetrofitClient.sourceOkHttpClient指定当前接口要使用的OkHttpClient HOT 2
- 能否在@RetrofitClient上指定Bean Name HOT 2
- 使用@RetrofitClient注册的组件似乎不能在单元测试中正确加载 HOT 1
- retry是否能够增加日志 HOT 2
- @Retry能否支持自定义handler方式,类似于@Intercept(handler = CustoomInterceptor.class) HOT 2
- ServiceInstanceChooser 实现类无法注入 LoadBalancerClient HOT 3
- LoggingInterceptor无法继承,会报globalLogProperty无法autowired HOT 1
- 能否支持 `okhttp3.logging.HttpLoggingInterceptor#redactHeader` HOT 1
- 是否支持springboot3.1.x ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retrofit-spring-boot-starter.