• 大小: 41KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-05
  • 语言: 数据库
  • 标签: SSM+Netty  

资源简介

SSM+Netty框架搭建,实现调用服务端获取oracle数据库表中数据,返回数据格式为JSON

资源截图

代码片段和文件信息

package com.pt.controller.listener;

import javax.servlet.ServletContext;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletContextAware;

import com.pt.controller.netty.MyServer;

@Service
public class WebContextListener implements InitializingBean ServletContextAware{


@Autowired
private MyServer myServer;

@Override
public void setServletContext(ServletContext servletContext) {
try {
myServer.bind(1235);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}

@Override
public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub

}

 
}

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

     文件        388  2018-03-15 08:09  huike-yc\.project

     文件         90  2018-03-15 08:09  huike-yc\.settings\org.eclipse.m2e.core.prefs

     文件       1312  2018-03-15 08:10  huike-yc\huike-yc-netty\.classpath

     文件       1090  2018-03-15 08:09  huike-yc\huike-yc-netty\.project

     文件        639  2018-03-15 08:09  huike-yc\huike-yc-netty\.settings\.jsdtscope

     文件        357  2018-03-15 10:41  huike-yc\huike-yc-netty\.settings\org.eclipse.core.resources.prefs

     文件        736  2018-03-15 08:10  huike-yc\huike-yc-netty\.settings\org.eclipse.jdt.core.prefs

     文件         90  2018-03-15 08:09  huike-yc\huike-yc-netty\.settings\org.eclipse.m2e.core.prefs

     文件        767  2018-03-15 08:10  huike-yc\huike-yc-netty\.settings\org.eclipse.wst.common.component

     文件        252  2018-03-15 08:10  huike-yc\huike-yc-netty\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-03-15 08:09  huike-yc\huike-yc-netty\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-03-15 08:09  huike-yc\huike-yc-netty\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件         50  2018-03-15 08:09  huike-yc\huike-yc-netty\.settings\org.eclipse.wst.validation.prefs

     文件       3738  2018-03-15 11:13  huike-yc\huike-yc-netty\pom.xml

     文件        839  2018-03-15 10:29  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\listener\WebContextListener.java

     文件       1114  2018-03-15 09:21  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\netty\HelloClientHandler.java

     文件       2655  2018-03-15 11:32  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\netty\HelloServerHandler.java

     文件        833  2018-03-15 09:21  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\netty\MyChannelHandler.java

     文件       1689  2018-03-15 09:21  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\netty\MyClient.java

     文件       1350  2018-03-15 11:33  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\netty\MyServer.java

     文件        622  2018-03-15 09:48  huike-yc\huike-yc-netty\src\main\java\com\pt\controller\threed\AppVersionController.java

     文件        192  2018-03-15 08:47  huike-yc\huike-yc-netty\src\main\java\com\pt\mapper\threed\AppVersionMapper.java

     文件        833  2018-03-15 08:51  huike-yc\huike-yc-netty\src\main\java\com\pt\mapper\threed\AppVersionMapper.xml

     文件        808  2018-03-15 08:46  huike-yc\huike-yc-netty\src\main\java\com\pt\pojo\threed\AppVersion.java

     文件        202  2018-03-15 08:47  huike-yc\huike-yc-netty\src\main\java\com\pt\service\threed\AppVersionService.java

     文件        581  2018-03-15 08:48  huike-yc\huike-yc-netty\src\main\java\com\pt\service\threed\impl\AppVersionServiceImpl.java

     文件       1027  2018-03-15 08:20  huike-yc\huike-yc-netty\src\main\resources\mybatis\SqlMapConfig.xml

     文件       1070  2018-03-15 11:40  huike-yc\huike-yc-netty\src\main\resources\properties\db.properties

     文件       1323  2018-03-15 11:05  huike-yc\huike-yc-netty\src\main\resources\properties\log4j.properties

     文件       2964  2018-03-15 08:20  huike-yc\huike-yc-netty\src\main\resources\spring\applicationContext-dao.xml

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

评论

共有 条评论

相关资源