Merge "端口修改"
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5b49f05
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+# 基础镜像
+FROM openjdk:17
+
+# 设置时区(避免日志时间错乱)
+ENV TZ=Asia/Shanghai
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
+
+# 拷贝JAR包
+COPY target/echo-backend-1.0-SNAPSHOT.jar /app/app.jar
+
+# 设置工作目录
+WORKDIR /app
+
+# 暴露端口
+EXPOSE 5011
+
+# 启动命令(添加内存优化参数)
+CMD ["java", "-Xmx512m", "-jar", "app.jar"]
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 0377a48..92ca907 100644
--- a/pom.xml
+++ b/pom.xml
@@ -184,48 +184,90 @@
             <artifactId>mysql-connector-java</artifactId>
             <version>8.0.27</version> <!-- 使用适合你的版本 -->
         </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-common</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
 
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-common</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
-        <!-- ttorrent -->
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-client</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-cli</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-network</artifactId>
-            <version>1.0</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-test-api</artifactId>
-            <version>1.0</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-bencoding</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-tests</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>com.turn</groupId>
-            <artifactId>ttorrent-tracker</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
-        </dependency>
+                <!-- ttorrent -->
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-client</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-cli</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-network</artifactId>
+                    <version>1.0</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-test-api</artifactId>
+                    <version>1.0</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-bencoding</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-tests</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.turn</groupId>
+                    <artifactId>ttorrent-tracker</artifactId>
+                    <version>1.3.0-SNAPSHOT</version>
+                </dependency>
+
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-common</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
+<!--        &lt;!&ndash; ttorrent &ndash;&gt;-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-client</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-cli</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-network</artifactId>-->
+<!--            <version>1.0</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-test-api</artifactId>-->
+<!--            <version>1.0</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-bencoding</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-tests</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.turn</groupId>-->
+<!--            <artifactId>ttorrent-tracker</artifactId>-->
+<!--            <version>1.3.0-SNAPSHOT</version>-->
+<!--        </dependency>-->
 
         <dependency>
             <groupId>com.github.pagehelper</groupId>
@@ -274,6 +316,14 @@
 
             </plugin>
             <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                    <!--  如果使用 system scope  -->
+                </configuration>
+            </plugin>
+            <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
                 <version>0.8.8</version>