瀏覽代碼

文档地址输出

liubo 3 年之前
父節點
當前提交
b2151417b6

+ 4 - 0
zd-common/common-swagger/src/main/java/com/zd/common/swagger/config/AppListener.java

@@ -4,6 +4,8 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.slf4j.LoggerFactory;
 import org.springframework.boot.context.event.ApplicationStartedEvent;
 import org.springframework.boot.context.event.ApplicationStartedEvent;
 import org.springframework.context.ApplicationListener;
 import org.springframework.context.ApplicationListener;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.annotation.Order;
 import org.springframework.core.env.Environment;
 import org.springframework.core.env.Environment;
 
 
 import java.net.InetAddress;
 import java.net.InetAddress;
@@ -14,6 +16,8 @@ import java.net.UnknownHostException;
  * @Date: 2021/09/30/10:13
  * @Date: 2021/09/30/10:13
  * @Description:
  * @Description:
  */
  */
+@Configuration
+@Order(-108)
 public class AppListener implements ApplicationListener<ApplicationStartedEvent> {
 public class AppListener implements ApplicationListener<ApplicationStartedEvent> {
     static Logger logger= LoggerFactory.getLogger(AppListener.class);
     static Logger logger= LoggerFactory.getLogger(AppListener.class);
     @Override
     @Override

+ 2 - 11
zd-gateway/pom.xml

@@ -86,11 +86,11 @@
         </dependency>
         </dependency>
 
 
         <!-- Swagger -->
         <!-- Swagger -->
-        <dependency>
+        <!--<dependency>
             <groupId>io.springfox</groupId>
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger-ui</artifactId>
             <artifactId>springfox-swagger-ui</artifactId>
             <version>${swagger.fox.version}</version>
             <version>${swagger.fox.version}</version>
-        </dependency>
+        </dependency>-->
 
 
         <dependency>
         <dependency>
             <groupId>com.github.xiaoymin</groupId>
             <groupId>com.github.xiaoymin</groupId>
@@ -119,15 +119,6 @@
                     </execution>
                     </execution>
                 </executions>
                 </executions>
             </plugin>
             </plugin>
-            <!-- 打包时跳过test插件,不运行test测试用例 -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <version>${maven-surefire-plugin.version}</version>
-                <configuration>
-                    <skipTests>true</skipTests>
-                </configuration>
-            </plugin>
         </plugins>
         </plugins>
     </build>
     </build>
 </project>
 </project>

+ 0 - 10
zd-gateway/src/main/resources/banner.txt

@@ -1,10 +0,0 @@
-Spring Boot Version: ${spring-boot.version}
-Spring Application Name: ${spring.application.name}
-                            _                        _                                 
-                           (_)                      | |                                
- _ __  _   _   ___   _   _  _  ______   __ _   __ _ | |_   ___ __      __  __ _  _   _ 
-| '__|| | | | / _ \ | | | || ||______| / _` | / _` || __| / _ \\ \ /\ / / / _` || | | |
-| |   | |_| || (_) || |_| || |        | (_| || (_| || |_ |  __/ \ V  V / | (_| || |_| |
-|_|    \__,_| \___/  \__, ||_|         \__, | \__,_| \__| \___|  \_/\_/   \__,_| \__, |
-                      __/ |             __/ |                                     __/ |
-                     |___/             |___/                                     |___/ 

+ 0 - 10
zd-modules/zd-airbottle/src/main/resources/banner.txt

@@ -1,10 +0,0 @@
-Spring Boot Version: ${spring-boot.version}
-Spring Application Name: ${spring.application.name}
-                            _                           _                    
-                           (_)                         | |                   
- _ __  _   _   ___   _   _  _  ______  ___  _   _  ___ | |_   ___  _ __ ___  
-| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ 
-| |   | |_| || (_) || |_| || |        \__ \| |_| |\__ \| |_ |  __/| | | | | |
-|_|    \__,_| \___/  \__, ||_|        |___/ \__, ||___/ \__| \___||_| |_| |_|
-                      __/ |                  __/ |                           
-                     |___/                  |___/                            

+ 0 - 65
zd-modules/zd-modules-laboratory/src/main/resources/templates/websocket.html

@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title>websocket通讯</title>
-</head>
-<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
-<script>
-    var socket;
-    function openSocket() {
-        if(typeof(WebSocket) == "undefined") {
-            console.log("您的浏览器不支持WebSocket");
-        }else{
-            console.log("您的浏览器支持WebSocket");
-            //实现化WebSocket对象,指定要连接的服务器地址与端口  建立连接
-            //等同于socket = new WebSocket("ws://localhost:8888/xxxx/im/25");
-            //var socketUrl="${request.contextPath}/im/"+$("#userId").val();
-            var socketUrl="http://localhost:9218/imserver/"+$("#userId").val();
-            socketUrl=socketUrl.replace("https","ws").replace("http","ws");
-            console.log(socketUrl);
-            if(socket!=null){
-                socket.close();
-                socket=null;
-            }
-            socket = new WebSocket(socketUrl);
-            //打开事件
-            socket.onopen = function() {
-                console.log("websocket已打开");
-                //socket.send("这是来自客户端的消息" + location.href + new Date());
-            };
-            //获得消息事件
-            socket.onmessage = function(msg) {
-                console.log(msg.data);
-                alert(msg);
-                alert(msg.data);
-                //发现消息进入    开始处理前端触发逻辑
-            };
-            //关闭事件
-            socket.onclose = function() {
-                console.log("websocket已关闭");
-            };
-            //发生了错误事件
-            socket.onerror = function() {
-                console.log("websocket发生了错误");
-            }
-        }
-    }
-    function sendMessage() {
-        if(typeof(WebSocket) == "undefined") {
-            console.log("您的浏览器不支持WebSocket");
-        }else {
-            console.log("您的浏览器支持WebSocket");
-            console.log('{"toUserId":"'+$("#toUserId").val()+'","contentText":"'+$("#contentText").val()+'"}');
-            socket.send('{"toUserId":"'+$("#toUserId").val()+'","contentText":"'+$("#contentText").val()+'"}');
-        }
-    }
-</script>
-<body>
-    <p>【userId】:<div><input id="userId" name="userId" type="text" value="10"></div>
-    <p>【toUserId】:<div><input id="toUserId" name="toUserId" type="text" value="20"></div>
-    <p>【toUserId】:<div><input id="contentText" name="contentText" type="text" value="hello websocket"></div>
-    <p>【操作】:<div><button onclick="openSocket()">开启socket</button></div>
-    <p>【操作】:<div><button onclick="sendMessage()">发送消息</button></div>
-</body>
-</html>