• 大小: 617KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: Java
  • 标签: socket  spring  java  

资源简介

socket结合spring的java工程,工程里缺少spring.jar包

资源截图

代码片段和文件信息

package com.test.action;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.context.support.ClassPathxmlApplicationContext;

public class InitListener implements ServletContextListener {

public void contextDestroyed(ServletContextEvent arg0) {
}

public void contextInitialized(ServletContextEvent sce) {
new ClassPathxmlApplicationContext(“applicationContext-minaServer.xml“);
// 在tomcat的启动过程中会看到控制台打印此语句.
System.out.println(“********mina server 启动完毕*********“);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1411  2012-01-05 12:37  socket_spring\.project

     文件        585  2012-01-05 12:38  socket_spring\src\com\test\action\InitListener.java

     文件        140  2012-01-05 12:39  socket_spring\src\com\test\action\SomeServer.java

     文件       1855  2012-01-05 13:15  socket_spring\src\com\test\client\MinaClient.java

     文件        690  2012-01-05 12:43  socket_spring\src\com\test\client\MinaClientHandler.java

     文件       1828  2012-01-05 13:15  socket_spring\src\com\test\server\MinaServerHandler.java

     文件       1431  2012-01-05 13:19  socket_spring\src\com\test\server\MiniServer_Unuse.java

     文件        533  2012-01-05 13:01  socket_spring\src\com\test\server\MyCodecFactory.java

     文件        347  2012-01-05 12:37  socket_spring\src\applicationContext.xml

     文件       2669  2012-01-05 13:11  socket_spring\src\applicationContext-minaServer.xml

     文件     644933  2012-01-05 13:01  socket_spring\WebRoot\WEB-INF\lib\mina-core-2.0.4.jar

     文件      25496  2012-01-05 13:09  socket_spring\WebRoot\WEB-INF\lib\slf4j-api-1.6.1.jar

     文件      31605  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\lib\commons-logging-1.0.3.jar

     文件        347  2012-01-05 12:37  socket_spring\WebRoot\WEB-INF\classes\applicationContext.xml

     文件       2669  2012-01-05 13:11  socket_spring\WebRoot\WEB-INF\classes\applicationContext-minaServer.xml

     文件        492  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\server\MyCodecFactory.class

     文件       1989  2012-01-05 13:19  socket_spring\WebRoot\WEB-INF\classes\com\test\server\MiniServer_Unuse.class

     文件       3369  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\server\MinaServerHandler.class

     文件       1401  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\client\MinaClientHandler.class

     文件       3248  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\client\MinaClient.class

     文件        528  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\action\SomeServer.class

     文件        926  2012-01-05 13:18  socket_spring\WebRoot\WEB-INF\classes\com\test\action\InitListener.class

     文件        468  2012-01-05 13:03  socket_spring\WebRoot\WEB-INF\web.xml

     文件         36  2012-01-05 12:35  socket_spring\WebRoot\meta-INF\MANIFEST.MF

     文件        834  2012-01-05 12:35  socket_spring\WebRoot\index.jsp

     文件        312  2012-01-05 12:35  socket_spring\.mymetadata

     文件        671  2012-01-05 13:18  socket_spring\.classpath

     文件        500  2012-01-05 12:35  socket_spring\.settings\.jsdtscope

     文件          6  2012-01-05 12:35  socket_spring\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件         49  2012-01-05 12:35  socket_spring\.settings\org.eclipse.wst.jsdt.ui.superType.container

............此处省略23个文件信息

评论

共有 条评论