1

spring boot 2.3.2.RELEASEspring-cloud-config-server 2.2.4.RELEASE. 我试图spring-doc-openapi (1.4.3)在现有项目中实施。如果我添加@EnableConfigServer一个配置类文件,swagger-ui.html端点会返回一个奇怪的 json:

   "name":"swagger-ui",
   "profiles":[
      "index.html"
   ],
   "label":null,
   "version":null,
   "state":null,
   "propertySources":[

   ]
}

而不是预期的招摇用户界面。我不确定它是否是一个错误,但希望能提供任何帮助。

4

1 回答 1

0

Not sure if its relevant to add the springdoc dependency on spring cloud config server, unless you need to explore some APIs on the config server it self.

Here is the link of a fully working example using springdoc with config server:

And this is the link of a blog which explains the natural usage with microservies and spring cloud modules:

于 2020-08-09T18:05:57.013 回答