Knife4j文档请求异常
提示Knife4j文档请求异常。We're sorry but knife4j-vue doesn't work properly without JavaScript enabled. Please enable it to continue.
   ·  
 - 首先加入拦截器url
 
	/doc.html/**
访问Knife4j页面,http://localhost:8501/doc.html,提示Knife4j文档请求异常。返回html页面显示<noscript>标签。
<noscript>
<strong>We're sorry but knife4j-vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
异常页面
- 查看控制台请求路径
 
/webjars/
/v3/api-docs/swagger-config
在拦截器url中添加 /v3/api-docs/** /webjars/**
可以正常访问接口文档。
总结
在拦截器url中添加以下路径
/doc.html/**
/v3/api-docs/**
/webjars/**

更多推荐
 


所有评论(0)