Your Name 8 月之前
父节点
当前提交
0945f55f2e

+ 12 - 30
pom.xml

@@ -58,16 +58,6 @@
             <version>3.1.918</version>
         </dependency>
 
-            <!-- Spring Boot WebSocket -->
-            <dependency>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-starter-websocket</artifactId>
-            </dependency>
-            <!-- Spring Boot Web(用于提供HTTP服务) -->
-            <dependency>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-starter-web</artifactId>
-            </dependency>
         <dependency>
             <groupId>activation</groupId>
             <artifactId>email</artifactId>
@@ -75,7 +65,6 @@
             <scope>system</scope>
             <systemPath>${project.basedir}/lib/activation.jar</systemPath>
         </dependency>
-
         <dependency>
             <groupId>mail</groupId>
             <artifactId>email</artifactId>
@@ -132,6 +121,10 @@
             <artifactId>spring-websocket</artifactId>
             <version>5.1.2.RELEASE</version>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-websocket</artifactId>
+        </dependency>
 
         <dependency>
             <groupId>net.java.dev.jna</groupId>
@@ -147,7 +140,7 @@
         <dependency>
             <groupId>com.alibaba</groupId>
             <artifactId>druid</artifactId>
-            <version>1.1.10</version>
+            <version>${druid.version}</version>
         </dependency>
         <!-- 苹果工具类 -->
         <dependency>
@@ -258,18 +251,7 @@
             <artifactId>mysql-connector-java</artifactId>
             <version>${mysql.version}</version>
         </dependency>
-        <!--oracle驱动-->
-<!--        <dependency>-->
-<!--            <groupId>com.oracle</groupId>-->
-<!--            <artifactId>ojdbc6</artifactId>-->
-<!--            <version>${oracle.version}</version>-->
-<!--        </dependency>-->
-        <!--mssql驱动-->
-<!--        <dependency>-->
-<!--            <groupId>com.microsoft.sqlserver</groupId>-->
-<!--            <artifactId>sqljdbc4</artifactId>-->
-<!--            <version>${mssql.version}</version>-->
-<!--        </dependency>-->
+
         <!--postgresql驱动-->
         <dependency>
             <groupId>org.postgresql</groupId>
@@ -518,9 +500,9 @@
 
     <repositories>
         <repository>
-            <id>public</id>
-            <name>aliyun nexus</name>
-            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
+            <id>central</id>
+            <name>Maven Central</name>
+            <url>https://repo1.maven.org/maven2/</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
@@ -528,9 +510,9 @@
     </repositories>
     <pluginRepositories>
         <pluginRepository>
-            <id>public</id>
-            <name>aliyun nexus</name>
-            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
+            <id>central</id>
+            <name>Maven Central</name>
+            <url>https://repo1.maven.org/maven2/</url>
             <releases>
                 <enabled>true</enabled>
             </releases>

+ 1 - 1
src/main/java/com/sqx/modules/chat/controller/app/AppChatSocket.java

@@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap;
 
 @Slf4j
 @Component
-@ServerEndpoint("/chatSocket/{userId}")
+@ServerEndpoint("/sqx_fast/chatSocket/{userId}")
 public class AppChatSocket {//用户聊天
 
     /**

+ 1 - 1
src/main/java/com/sqx/modules/chats/controller/WebSocket.java

@@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap;
  * WebSocket聊天实现
  */
 @Component
-@ServerEndpoint("/websocket/{wxUserId}")
+@ServerEndpoint("/sqx_fast/websocket/{wxUserId}")
 public class WebSocket {
     private Logger logger = LoggerFactory.getLogger(this.getClass());