dadiyang / http-api-invoker Goto Github PK
View Code? Open in Web Editor NEW一个让http接口调用跟调用本地方法一样自然优雅的项目
License: MIT License
一个让http接口调用跟调用本地方法一样自然优雅的项目
License: MIT License
现在公司不让用fastjson了
@RetryPolicy 中的值可以配置化,而不是直接在注解上写死
比如: times 从配置文件中取值
fixedBackOffPeriod: 也从配置文件中取值
请问如何正确的post json:
{
"event":"xxxx",
"to":"dddddd",
"msg":"niihaoooo",
"from":"yyyyy"
}
如题,遇到一个奇葩问题,有一个get请求,需要获取返回的网页的地址栏URL,通过String映射的话,获取的是网页内容
如题
com.alibaba.fastjson.JSONException: can not cast to JSONObject.
at com.alibaba.fastjson.JSON.parseObject(JSON.java:249)
at com.github.dadiyang.httpinvoker.requestor.ResultBeanResponseProcessor.process(ResultBeanResponseProcessor.java:60)
类似#{T(com..web.model.eum.ConfigKeys.).getValue()} 这种
有个需求请抽空实现下多文件上传的支持,感谢,,期待更新:)
At least one base package must be specified
at org.springframework.util.Assert.notEmpty(Assert.java:228) ~[spring-core-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:269) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at com.github.dadiyang.httpinvoker.spring.ClassPathHttpApiScanner.doScan(ClassPathHttpApiScanner.java:54) ~[http-api-invoker-1.2.1.jar:?]
at com.github.dadiyang.httpinvoker.spring.HttpApiConfigurer.postProcessBeanDefinitionRegistry(HttpApiConfigurer.java:100) ~[http-api-invoker-1.2.1.jar:?]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:122) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
我有一个形如
{ "code": 200, "data": object, "msg": null }
的返回结果,在结合Spring的时候,使用@Import(ResultBeanResponseProcessor.class)
,但是结果好像不如预期
can not cast to int, value : {"code":200,"data":1}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.