3.7.0大版本发布

This commit is contained in:
JEECG
2024-06-11 22:58:04 +08:00
parent 857fb53fa1
commit a6b6e7c9d4
205 changed files with 3807 additions and 768 deletions

View File

@ -34,7 +34,12 @@ public class GlobalAccessTokenFilter implements GlobalFilter, Ordered {
String scheme = exchange.getRequest().getURI().getScheme();
String host = exchange.getRequest().getURI().getHost();
int port = exchange.getRequest().getURI().getPort();
String basePath = scheme + "://" + host + ":" + port;
//update-begin---author:chenrui ---date:20240603 for地址中没有带端口(http/https默认)时port是-1------------
String basePath = scheme + "://" + host;
if (port != -1) {
basePath += ":" + port;
}
//update-end---author:chenrui ---date:20240603 for地址中没有带端口(http/https默认)时port是-1------------
// 1. 重写StripPrefix(获取真实的URL)
addOriginalRequestUrl(exchange, exchange.getRequest().getURI());
String rawPath = exchange.getRequest().getURI().getRawPath();

View File

@ -25,7 +25,7 @@ public class SwaggerResourceController {
*/
@Value("${knife4j.production:#{null}}")
private Boolean production;
@Autowired
public SwaggerResourceController(MySwaggerResourceProvider swaggerResourceProvider) {
this.swaggerResourceProvider = swaggerResourceProvider;