提交 b8dc2350 编写于 作者: shuzheng5201314's avatar shuzheng5201314

兼容SocketIO.js最新版本

上级 7f16a891
package com.zheng.cms.rpc; package com.zheng.cms.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/** /**
* 服务启动类 * 服务启动类
* Created by ZhangShuzheng on 2017/2/3. * Created by ZhangShuzheng on 2017/2/3.
*/ */
public class ZhengCmsRpcServiceApplication { public class ZhengCmsRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengCmsRpcServiceApplication.class);
public static void main(String[] args) { public static void main(String[] args) {
LOGGER.info(">>>>> zheng-cms-rpc-service 正在启动 <<<<<"); com.alibaba.dubbo.container.Main.main(args);
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</parent> </parent>
<artifactId>zheng-message-server</artifactId> <artifactId>zheng-message-server</artifactId>
<packaging>jar</packaging> <packaging>war</packaging>
<name>zheng-message-server</name> <name>zheng-message-server</name>
<url>http://www.zhangshuzheng.cn</url> <url>http://www.zhangshuzheng.cn</url>
...@@ -25,6 +25,13 @@ ...@@ -25,6 +25,13 @@
<version>1.0.0</version> <version>1.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency>
<groupId>com.corundumstudio.socketio</groupId>
<artifactId>netty-socketio</artifactId>
<version>1.7.12.zheng</version>
<scope>system</scope>
<systemPath>${basedir}/lib/netty-socketio-1.7.12.zheng.jar</systemPath>
</dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
...@@ -106,6 +113,24 @@ ...@@ -106,6 +113,24 @@
<testFailureIgnore>true</testFailureIgnore> <testFailureIgnore>true</testFailureIgnore>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>
<includeScope>system</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册