Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    xiaoymin
    @xiaoymin
    Welcome to Knife4j!!!
    最后
    @zuihou
    hello world
    YanXiangGit
    @YanXiangGit
    hello
    xiaoymin
    @xiaoymin
    Knife4j-admin V1.0 发布,任意聚合Swagger文档
    xiaoymin
    @xiaoymin
    Knife4j 2.0.3 正式发布,支持 springdoc 和 i18n
    564142183
    @564142183

    Description:

    An attempt was made to call a method that does not exist. The attempt was made from the following location:

    springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:117)

    The following method did not exist:

    com.google.common.collect.FluentIterable.append(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;

    The method's class, com.google.common.collect.FluentIterable, is available from the following locations:

    jar:file:/C:/Users/Administrator/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar!/com/google/common/collect/FluentIterable.class

    It was loaded from the following location:

    file:/C:/Users/Administrator/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar

    Action:

    Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable

    xiaoymin
    @xiaoymin
    @564142183 你项目中引用的Guava版本太低,排除掉即可,springfox2.9.2引用的版本是20的,参考https://doc.xiaominfo.com/faq/sp-nmerror.html
    564142183
    @564142183
    easypoi-spring-boot-starter 里面的 guava版本太低导致的
    接口点击发送,能否设置把请求参数收回
    参数多每次请求完,都需要往下拉页面
    edgeowner
    @edgeowner
    这是啥群
    陈思凡
    @chensifan100
    @xiaoymin 大佬你好。swagger默认是用jackjson序列化,因为某些原因,我用一些手段把swagger的默认json框架换成fastjson。然后knife4j就出问题了,响应参数和响应示例不显示了,但请求参数和响应状态是正常的。在项目里我只引用了knife4j-spring-ui,版本是2.0.4。我用原生swagger-ui.html访问,发现一切都是正常的。所以我大胆猜测,是不是因为fastjson和jackjson的序列化机制不一样,导致序列化的值字段名不一样了,然后knife4j就识别不出来,也就部分内容不显示了。我看了下knife4j-spring-ui jar包里面的内容,推测这部分逻辑是在app.b299109b.js里面,但可惜的是我很多年没有写前端,js忘记差不多了,所以我想请求大佬你能不能兼容一下使用fastjson作为序列化框架的swagger
    xiaoymin
    @xiaoymin
    @chensifan100 没碰到过,fastjson 都不怎么用了
    郭绍强
    @gsqiang
    请问 LocalDate类型参数页面 显示异常怎么解决的
    image.png
    陈思凡
    @chensifan100
    @xiaoymin 我解决了。因为fastjson序列化出来对象的字段比jackjson多,比如说swagger内置的对象使用了jackjson的注解JsonProperty,但是fastjson是不认的,所以解决思路也很简单,对比不同json框架下/v2/api-docs返回值,序列化时把多余的字段去掉就行了
    @gsqiang 不知道你是不是使用fastjson,如果是的话,把fastjson升级到最新版本就解决了
    xiaoymin
    @xiaoymin
    SpringMVC用户 集成Knife4j的文档 :https://doc.xiaominfo.com/knife4j/springmvc.html
    SunYu
    @89333367
    有人吗?发现了一个2.0.5版本的bug
    Yanhan
    @reki-cool
    什么BUG @89333367
    Yogurt lei
    @Yogurt-lei
    image.png
    这个地方不兼容呀 springfox 升级了 没有guava的optional了
    xiaoymin
    @xiaoymin
    springfox3.0 后是使用了java8的Optional,并且把guava移除了,移除了也是好事,knife4j 后面会兼容springfox3.0
    Phyzait
    @Phyzait
    大佬们 如何忽略response的字段?