Ver código fonte

优化动态脚本

zhouhao 8 anos atrás
pai
commit
d4c07ad9db
33 arquivos alterados com 25 adições e 228 exclusões
  1. 1 1
      hsweb-web-bean/pom.xml
  2. 1 1
      hsweb-web-concurrent/hsweb-web-concurrent-cache/pom.xml
  3. 1 1
      hsweb-web-concurrent/hsweb-web-concurrent-lock/pom.xml
  4. 1 1
      hsweb-web-concurrent/pom.xml
  5. 1 1
      hsweb-web-controller/pom.xml
  6. 1 1
      hsweb-web-core/pom.xml
  7. 0 7
      hsweb-web-core/src/main/java/org/hsweb/web/core/CoreAutoConfiguration.java
  8. 1 1
      hsweb-web-dao/hsweb-web-dao-api/pom.xml
  9. 1 1
      hsweb-web-dao/hsweb-web-dao-mybatis/README.md
  10. 1 1
      hsweb-web-dao/hsweb-web-dao-mybatis/pom.xml
  11. 1 1
      hsweb-web-dao/pom.xml
  12. 1 1
      hsweb-web-datasource/pom.xml
  13. 0 33
      hsweb-web-message/pom.xml
  14. 0 46
      hsweb-web-message/src/main/java/org/hsweb/web/message/Message.java
  15. 0 8
      hsweb-web-message/src/main/java/org/hsweb/web/message/MessageHolder.java
  16. 0 10
      hsweb-web-message/src/main/java/org/hsweb/web/message/MessageManager.java
  17. 0 42
      hsweb-web-message/src/test/java/org/hsweb/web/message/AmqpTests.java
  18. 0 21
      hsweb-web-message/src/test/java/org/hsweb/web/message/Consumer.java
  19. 0 29
      hsweb-web-message/src/test/java/org/hsweb/web/message/SampleActiveMQApplication.java
  20. 0 6
      hsweb-web-message/src/test/resources/application.yml
  21. 1 1
      hsweb-web-oauth2/hsweb-web-oauth2-controller/pom.xml
  22. 1 1
      hsweb-web-oauth2/hsweb-web-oauth2-core/pom.xml
  23. 1 1
      hsweb-web-oauth2/hsweb-web-oauth2-mybatis/pom.xml
  24. 1 1
      hsweb-web-oauth2/hsweb-web-oauth2-service-simple/pom.xml
  25. 1 1
      hsweb-web-oauth2/hsweb-web-oauth2-simple/pom.xml
  26. 1 1
      hsweb-web-oauth2/pom.xml
  27. 1 1
      hsweb-web-service/hsweb-web-service-api/pom.xml
  28. 1 1
      hsweb-web-service/hsweb-web-service-simple/pom.xml
  29. 1 1
      hsweb-web-service/pom.xml
  30. 1 1
      hsweb-web-starter/pom.xml
  31. 1 1
      hsweb-web-websocket/pom.xml
  32. 1 1
      hsweb-web-workflow/pom.xml
  33. 2 3
      pom.xml

+ 1 - 1
hsweb-web-bean/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-bean</artifactId>

+ 1 - 1
hsweb-web-concurrent/hsweb-web-concurrent-cache/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-concurrent</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-concurrent-cache</artifactId>

+ 1 - 1
hsweb-web-concurrent/hsweb-web-concurrent-lock/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-concurrent</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-concurrent-lock</artifactId>

+ 1 - 1
hsweb-web-concurrent/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>pom</packaging>

+ 1 - 1
hsweb-web-controller/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-controller</artifactId>

+ 1 - 1
hsweb-web-core/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-core</artifactId>

+ 0 - 7
hsweb-web-core/src/main/java/org/hsweb/web/core/CoreAutoConfiguration.java

@@ -80,11 +80,4 @@ public class CoreAutoConfiguration {
         }
     }
 
-    public static void main(String[] args) throws Exception {
-        new CoreAutoConfiguration().init();
-        DynamicScriptEngine e = DynamicScriptEngineFactory.getEngine("javascript");
-        e.compile("test", "alert('aaa');");
-        System.out.println(e.execute("test").getIfSuccess());
-
-    }
 }

+ 1 - 1
hsweb-web-dao/hsweb-web-dao-api/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-dao</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-dao-api</artifactId>

+ 1 - 1
hsweb-web-dao/hsweb-web-dao-mybatis/README.md

@@ -10,7 +10,7 @@
      <dependency>
         <groupId>org.hsweb</groupId>
         <artifactId>hsweb-web-dao-mybatis</artifactId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </dependency>
 ```
 

+ 1 - 1
hsweb-web-dao/hsweb-web-dao-mybatis/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-dao</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-dao-mybatis</artifactId>

+ 1 - 1
hsweb-web-dao/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>pom</packaging>

+ 1 - 1
hsweb-web-datasource/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 0 - 33
hsweb-web-message/pom.xml

@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <artifactId>hsweb-framework</artifactId>
-        <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>hsweb-web-message</artifactId>
-
-    <dependencies>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-test</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-activemq</artifactId>
-        </dependency>
-
-
-    </dependencies>
-
-</project>

+ 0 - 46
hsweb-web-message/src/main/java/org/hsweb/web/message/Message.java

@@ -1,46 +0,0 @@
-package org.hsweb.web.message;
-
-/**
- * @author zhouhao
- */
-public class Message {
-    private String callback;
-
-    private String to;
-
-    private String from;
-
-    private String content;
-
-    public String getTo() {
-        return to;
-    }
-
-    public void setTo(String to) {
-        this.to = to;
-    }
-
-    public String getFrom() {
-        return from;
-    }
-
-    public void setFrom(String from) {
-        this.from = from;
-    }
-
-    public String getContent() {
-        return content;
-    }
-
-    public void setContent(String content) {
-        this.content = content;
-    }
-
-    public String getCallback() {
-        return callback;
-    }
-
-    public void setCallback(String callback) {
-        this.callback = callback;
-    }
-}

+ 0 - 8
hsweb-web-message/src/main/java/org/hsweb/web/message/MessageHolder.java

@@ -1,8 +0,0 @@
-package org.hsweb.web.message;
-
-/**
- * @author zhouhao
- */
-public class MessageHolder {
-
-}

+ 0 - 10
hsweb-web-message/src/main/java/org/hsweb/web/message/MessageManager.java

@@ -1,10 +0,0 @@
-package org.hsweb.web.message;
-
-/**
- * @author zhouhao
- */
-public interface MessageManager {
-
-    void send(Message message, boolean discardIfUserOffline);
-
-}

+ 0 - 42
hsweb-web-message/src/test/java/org/hsweb/web/message/AmqpTests.java

@@ -1,42 +0,0 @@
-package org.hsweb.web.message;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.jms.annotation.EnableJms;
-import org.springframework.jms.config.JmsListenerContainerFactory;
-import org.springframework.jms.config.SimpleJmsListenerEndpoint;
-import org.springframework.jms.core.JmsMessagingTemplate;
-import org.springframework.jms.core.JmsTemplate;
-import org.springframework.jms.listener.MessageListenerContainer;
-import org.springframework.messaging.simp.annotation.SendToUser;
-import org.springframework.test.context.junit4.SpringRunner;
-
-import javax.jms.*;
-import javax.jms.Message;
-import java.util.HashMap;
-
-
-/**
- * @author zhouhao
- */
-@RunWith(SpringRunner.class)
-@SpringBootTest(classes = SampleActiveMQApplication.class, properties = "application.yml")
-@EnableJms
-public class AmqpTests {
-
-    @Autowired
-    private JmsTemplate template;
-
-    @Test
-    public void testSend() throws InterruptedException {
-
-        for (int i = 0; i < 100; i++) {
-            template.convertAndSend("test2", "aaaa" + i);
-        }
-        Thread.sleep(10000);
-
-    }
-
-}

+ 0 - 21
hsweb-web-message/src/test/java/org/hsweb/web/message/Consumer.java

@@ -1,21 +0,0 @@
-package org.hsweb.web.message;
-
-import org.springframework.jms.annotation.JmsListener;
-import org.springframework.messaging.simp.annotation.SubscribeMapping;
-import org.springframework.stereotype.Component;
-
-@Component
-public class Consumer {
-
-
-    @JmsListener(destination = "test2")
-    public void receiveQueue3(String text) {
-        System.out.println("3:" + text);
-    }
-
-    @JmsListener(destination = "test2")
-    public void receiveQueue4(String text) {
-        System.out.println("4:" + text);
-    }
-
-}

+ 0 - 29
hsweb-web-message/src/test/java/org/hsweb/web/message/SampleActiveMQApplication.java

@@ -1,29 +0,0 @@
-package org.hsweb.web.message;
-
-import org.apache.activemq.command.ActiveMQQueue;
-import org.apache.activemq.command.ActiveMQTopic;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.Bean;
-import org.springframework.jms.annotation.EnableJms;
-import org.springframework.jms.listener.adapter.MessageListenerAdapter;
-
-import javax.jms.MessageListener;
-import javax.jms.Queue;
-import javax.jms.Topic;
-
-@SpringBootApplication
-@EnableJms
-public class SampleActiveMQApplication {
-
-    @Bean
-    public Queue queue() {
-        return new ActiveMQQueue("test");
-    }
-
-    @Bean
-    public Topic topic() {
-        ActiveMQTopic topic = new ActiveMQTopic("test2");
-        return topic;
-    }
-
-}

+ 0 - 6
hsweb-web-message/src/test/resources/application.yml

@@ -1,6 +0,0 @@
-spring:
-    activemq:
-        in-memory: false
-        pool:
-          enabled: false
-        broker-url: failover:tcp://127.0.0.1:61616

+ 1 - 1
hsweb-web-oauth2/hsweb-web-oauth2-controller/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-web-oauth2</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-oauth2/hsweb-web-oauth2-core/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-web-oauth2</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-oauth2/hsweb-web-oauth2-mybatis/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-web-oauth2</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-oauth2/hsweb-web-oauth2-service-simple/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-web-oauth2</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-oauth2/hsweb-web-oauth2-simple/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-web-oauth2</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-oauth2/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-service/hsweb-web-service-api/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-service</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>hsweb-web-service-api</artifactId>

+ 1 - 1
hsweb-web-service/hsweb-web-service-simple/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-web-service</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-service/pom.xml

@@ -21,7 +21,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <modules>

+ 1 - 1
hsweb-web-starter/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-websocket/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 1 - 1
hsweb-web-workflow/pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <artifactId>hsweb-framework</artifactId>
         <groupId>org.hsweb</groupId>
-        <version>2.2.1-SNAPSHOT</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 3
pom.xml

@@ -6,7 +6,7 @@
     <groupId>org.hsweb</groupId>
     <artifactId>hsweb-framework</artifactId>
     <packaging>pom</packaging>
-    <version>2.2.1-SNAPSHOT</version>
+    <version>2.2-SNAPSHOT</version>
 
     <name>${project.groupId}:${project.artifactId}</name>
     <url>http://www.hsweb.me</url>
@@ -50,7 +50,6 @@
         <module>hsweb-web-oauth2</module>
         <module>hsweb-web-datasource</module>
         <module>hsweb-web-starter</module>
-        <module>hsweb-web-message</module>
     </modules>
 
     <properties>
@@ -62,7 +61,7 @@
         <javassist.version>3.20.0-GA</javassist.version>
         <project.build.jdk>${java.version}</project.build.jdk>
 
-        <spring.boot.version>1.4.2.RELEASE</spring.boot.version>
+        <spring.boot.version>1.3.7.RELEASE</spring.boot.version>
 
         <activiti.version>5.19.0.2</activiti.version>