Skip to content

Commit 01abf1c

Browse files
author
jack
committed
graph-editor-0.0.1-SNAPSHOT.jar
1 parent 7e1bab9 commit 01abf1c

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

graph-editor-0.0.1-SNAPSHOT.jar

33.7 MB
Binary file not shown.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>graph-editor</name>
1515
<description>Graph Editor Application in Spring Boot</description>
16+
<packaging>jar</packaging>
1617

1718
<properties>
1819
<java.version>1.8</java.version>

src/main/java/com/mxgraph/online/ExportServlet.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.mxgraph.online;
22

3+
import org.springframework.beans.factory.annotation.Value;
4+
35
import javax.servlet.ServletException;
46
import javax.servlet.annotation.WebServlet;
57
import javax.servlet.http.HttpServlet;
@@ -20,9 +22,11 @@
2022
@SuppressWarnings("serial")
2123
@WebServlet(name = "ExportServlet", urlPatterns = "/export")
2224
public class ExportServlet extends HttpServlet {
23-
private final String EXPORT_URL = "http://localhost:8000/";
2425

2526
private final String[] supportedServices = {"EXPORT_URL", "PLANTUML_URL", "VSD_CONVERT_URL", "EMF_CONVERT_URL"};
27+
@Value("${server.port}")
28+
private String port;
29+
private final String EXPORT_URL = "http://localhost:" + port + "/";
2630

2731
private void doRequest(String method, HttpServletRequest request,
2832
HttpServletResponse response) throws ServletException, IOException {

src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server:
2-
port: 8000
2+
port: 9999
33

44
management:
55
endpoints:

0 commit comments

Comments
 (0)