Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring Boot JsonDoc配置,http://localhost:8080/jsondoc 无法获取文档_Java_Spring_Maven_Spring Mvc_Jsondoc - Fatal编程技术网

Java Spring Boot JsonDoc配置,http://localhost:8080/jsondoc 无法获取文档

Java Spring Boot JsonDoc配置,http://localhost:8080/jsondoc 无法获取文档,java,spring,maven,spring-mvc,jsondoc,Java,Spring,Maven,Spring Mvc,Jsondoc,我的Spring Boot项目中的配置JsonDoc有问题。 未检测到jsondoc-ui.html。 当我输入时,我收到空白对象,如: {"version":null, "basePath":null, "apis":{}, "objects":{}, "flows":{}, "global":null, "playgroundEnabled":true, "displayMethodAs":"URI"} 以下是我的配置: 应用程序属性 jsondoc.version=

我的Spring Boot项目中的配置JsonDoc有问题。 未检测到jsondoc-ui.html。 当我输入时,我收到空白对象,如:

{"version":null,
 "basePath":null,
  "apis":{},
 "objects":{},
  "flows":{},
  "global":null,
 "playgroundEnabled":true,
  "displayMethodAs":"URI"}
以下是我的配置:

应用程序属性

jsondoc.version=1.0
jsondoc.basePath=http://localhost:8080
jsondoc.packages[0]=controller
jsondoc.packages[1]=domain
####optional configuration
jsondoc.playgroundEnabled=false
jsondoc.displayMethodAs=URI
我的pom.xml

<!--JSON DOC-->
    <dependency>
        <groupId>org.jsondoc</groupId>
        <artifactId>spring-boot-starter-jsondoc</artifactId>
        <version>1.2.16</version>
    </dependency>
    <dependency>
        <groupId>org.jsondoc</groupId>
        <artifactId>jsondoc-ui-webjar</artifactId>
        <version>1.2.16</version>
    </dependency>

org.jsondoc
弹簧启动机jsondoc
1.2.16
org.jsondoc
jsondocuiwebjar
1.2.16

并在我的配置类中使用annotation@EnableJSONDoc

UPDATE:我注意到,当我删除application.properties的application.properties配置时,情况是一样的。因此,它无法检测到您的application.properties的任何配置。看看它是否在正确的位置。