mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-04 04:45:28 +08:00
3.7.0大版本发布
This commit is contained in:
@ -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();
|
||||
|
||||
@ -25,7 +25,7 @@ public class SwaggerResourceController {
|
||||
*/
|
||||
@Value("${knife4j.production:#{null}}")
|
||||
private Boolean production;
|
||||
|
||||
|
||||
@Autowired
|
||||
public SwaggerResourceController(MySwaggerResourceProvider swaggerResourceProvider) {
|
||||
this.swaggerResourceProvider = swaggerResourceProvider;
|
||||
|
||||
Reference in New Issue
Block a user