Java Spring Boot JsonDoc配置,http://localhost:8080/jsondoc 无法获取文档
我的Spring Boot项目中的配置JsonDoc有问题。 未检测到jsondoc-ui.html。 当我输入时,我收到空白对象,如: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=
{"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@EnableJSONDocUPDATE:我注意到,当我删除application.properties的application.properties配置时,情况是一样的。因此,它无法检测到您的application.properties的任何配置。看看它是否在正确的位置。