随笔分类 -  SSH

SSH学习笔记(三)
摘要:三、项目拓展下面在前面的小项目中添加一个小功能,动态生成execl文件及下载,要用到apache的POI组件,这个包默认已经被spring加载1、在UserService.java中添加方法public InputStream getInputStream();在它的实现类中实现package com.test.service.impl; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; impo. 阅读全文
posted @ 2011-08-24 22:10 Kevin Bing 阅读(327) 评论(0) 推荐(1)
SSH学习笔记(二)
摘要:二、小项目实践项目描述:对一个用户的姓、名、年龄进行增删查改,使用ssh框架 + apache的dbcp连接池。1、确认commons-dbcp.jar已被导入(按照上篇的操作,则会被导入)2、使用mysql数据库,建立名为mytest的数据库,创建表userscreate table users ( id int not null, firstname varchar(50) not null, lastname varchar(50) not null, age int not null, primary key (id) ) ENGIN = InnoDB ROW_FORMAT = DEF 阅读全文
posted @ 2011-08-15 21:31 Kevin Bing 阅读(320) 评论(0) 推荐(0)
SSH学习笔记(一)
摘要:开发环境:1、MyEclipse 6.5 2、Tomcat 6.0 3、Struts2.0 + Hibernate3.2 + Spring2.0一、编码前的操作1、创建项目。在MyEclipse中新建一个Web Project,名为mytest,使用的是JavaEE 5 Library。项目实际地址为G:\workspace\ssh\mytest2、将项目部署到tomcat。进入tomcat目录下的conf中(G:\apache-tomcat-6.0.30\conf),打开server.xml,在</Host>之上添加一行代码<Context path="/... 阅读全文
posted @ 2011-08-09 22:09 Kevin Bing 阅读(410) 评论(0) 推荐(0)