From d00b4611517dff7ca48b88ad938d86bea936106d Mon Sep 17 00:00:00 2001 From: yiyan Date: Sat, 1 Jun 2019 22:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E6=94=B9?= =?UTF-8?q?=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 21 ++++- .../ifish/entity/event/QueueEventBody.java | 37 ++++++++ .../ifish/entity/event/QueueEventEntity.java | 40 ++++++++ .../ifish/serviceImpl/AdminServiceImpl.java | 93 +++++++++++-------- src/main/resources/application-context.xml | 46 ++++++++- src/main/resources/mq.properties | 7 ++ 6 files changed, 199 insertions(+), 45 deletions(-) create mode 100644 src/main/java/com/ifish/entity/event/QueueEventBody.java create mode 100644 src/main/java/com/ifish/entity/event/QueueEventEntity.java create mode 100644 src/main/resources/mq.properties diff --git a/pom.xml b/pom.xml index 8e98c2e..9fd5e0b 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,11 @@ spring-context 4.1.6.RELEASE - + + org.springframework + spring-aop + 4.3.12.RELEASE + org.springframework spring-orm @@ -48,7 +52,11 @@ aspectjweaver 1.8.5 - + + org.apache.activemq + activemq-all + 5.15.4 + org.springframework spring-webmvc @@ -141,6 +149,11 @@ commons-lang3 3.5 + + org.apache.commons + commons-pool2 + 2.6.2 + - + + + + + classpath:mq.properties + classpath:jdbc.properties + classpath:jPpush.properties + + + @@ -55,9 +65,8 @@ ${hibernate.dialect} ${hibernate.show_sql} ${hibernate.format_sql} - ${hibernate.hbm2ddl.auto} ${hibernate.query.substitutions} - ${"hibernate.jdbc.batch_size"} + ${hibernate.jdbc.batch_size} @@ -86,4 +95,35 @@ ${netease.appSecret} + + + + + + + + + + + + + + + + + + + + + + + + + + + ${queue_push_name} + + + \ No newline at end of file diff --git a/src/main/resources/mq.properties b/src/main/resources/mq.properties new file mode 100644 index 0000000..a5dcb67 --- /dev/null +++ b/src/main/resources/mq.properties @@ -0,0 +1,7 @@ +#broker_url=tcp://test.ifish7.com:61616 +broker_url=tcp://www.ifish7.com:61616 +username=admin +#password=admin +password=adminifish7 +queue_data_name=ifishDataMq +queue_push_name=ifishPushMq \ No newline at end of file