Browse Source

提交:11

mine
袁强 5 months ago
parent
commit
098d51a384
  1. 2
      pom.xml
  2. 2
      yq-framework/src/main/java/yq/framework/config/ServerConfig.java
  3. 2
      yq-system/pom.xml

2
pom.xml

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>yq</groupId> <groupId>yq</groupId>
<artifactId>yq_0bject_detection</artifactId> <artifactId>yq</artifactId>
<version>3.8.6</version> <version>3.8.6</version>
<name>yq_0bject_detection</name> <name>yq_0bject_detection</name>

2
yq-framework/src/main/java/yq/framework/config/ServerConfig.java

@ -27,6 +27,6 @@ public class ServerConfig
{ {
StringBuffer url = request.getRequestURL(); StringBuffer url = request.getRequestURL();
String contextPath = request.getServletContext().getContextPath(); String contextPath = request.getServletContext().getContextPath();
return url.delete(url.length() - request.getRequestURI().length(), url.length()).append(contextPath).toString(); return url.delete(url.length() - request.getRequestURI().length(), url.length()).append(":"+request.getLocalPort()).append(contextPath).toString();
} }
} }

2
yq-system/pom.xml

@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>yq</groupId> <groupId>yq</groupId>
<artifactId>yq_0bject_detection</artifactId> <artifactId>yq</artifactId>
<version>3.8.6</version> <version>3.8.6</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

Loading…
Cancel
Save