chore(deps): 接口文档依赖改为 apishow 0.4.0

依赖坐标与版本属性改用 apishow
配置前缀与静态资源白名单改用 apishow
This commit is contained in:
Ray.Hao committed 2026-11-26 21:24:41 +08:00
1 parent d34cfe995e
commit 5cc552f9e1
7 files changed
+14 -14

No files matched your search

@@ -124,14 +124,14 @@ class ConfigurationDefaultsTest {
void documentUiIsEnabledOutsideProduction(String profile) {
contextRunner(profile).run(context -> {
assertThat(context).hasNotFailed();
assertThat(context.getEnvironment().getProperty("apidoc.enabled", Boolean.class, true))
assertThat(context.getEnvironment().getProperty("apishow.enabled", Boolean.class, true))
.as("文档 UI 应在生产环境关闭")
.isEqualTo(!profile.equals("prod"));
var permitAllUrls = Binder.get(context.getEnvironment())
.bindOrCreate("security", SecurityProperties.class).getPermitAllUrls();
assertThat(permitAllUrls)
.contains("/doc.html", "/apidoc/**")
.contains("/doc.html", "/apishow/**")
.allSatisfy(url -> assertThat(url).doesNotContain("${"));
});
}