会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JesseCary
2015年5月16日
声明事物管理器
摘要: org.hibernate.dialect.Oracle9Dialect ./Users.hbm.xml ./Orderdts.hbm.xml ./Meal.hbm.xml ./Mea...
阅读全文
posted @ 2015-05-16 22:31 JesseCary
阅读(136)
评论(0)
推荐(0)
FileOutputStreamTest
摘要: package JBJADV003;import java.io.FileOutputStream;import java.io.OutputStream;import java.io.IOException;import java.io.InputStream;import java.io.Fil...
阅读全文
posted @ 2015-05-16 14:50 JesseCary
阅读(171)
评论(0)
推荐(0)
BufferedWriterTest
摘要: public class BufferedWriterTest { public static void main(String[] args) { try { //创建一个FileWriter 对象 FileWriter fw=new FileWriter("c:...
阅读全文
posted @ 2015-05-16 14:30 JesseCary
阅读(129)
评论(0)
推荐(0)
BufferedReaderTest
摘要: package JBJADV003;import java.io.*;public class BufferedReaderTest { /** * @param args */ public static void main(String[] args) { try { /...
阅读全文
posted @ 2015-05-16 14:29 JesseCary
阅读(136)
评论(0)
推荐(0)
FileInputStreamTest
摘要: package JBJADV003;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStream;import java.io.FileInputStream;/*** File...
阅读全文
posted @ 2015-05-16 14:28 JesseCary
阅读(167)
评论(0)
推荐(0)
mvcSSHweb.xml要配置的信息
摘要: index.jsp --> contextConfigLocation classpath:applicationContext.xml, classpath:applicationContext-*.xml org.spri...
阅读全文
posted @ 2015-05-16 12:03 JesseCary
阅读(154)
评论(0)
推荐(0)
集成 ssh第一阶段
摘要: 1.添加spring支持,包含spring-hibernate和spring-struts2.添加struts支持,包含struts-spring3.添加hibernate支持,在spring配置文件中生成数据源和会话工厂。4.生成实体类和dao类。5.建立biz和action包。6.在biz中引用...
阅读全文
posted @ 2015-05-16 12:02 JesseCary
阅读(136)
评论(0)
推荐(0)
database.properties数据源
摘要: jdbc.driver_class=oracle.jdbc.driver.OracleDriverjdbc.connection.url=jdbc:oracle:thin:@localhost:1521:orcljdbc.connection.username=myoraclejdbc.connec...
阅读全文
posted @ 2015-05-16 11:58 JesseCary
阅读(338)
评论(0)
推荐(0)
User implements HttpSessionBindingListener
摘要: public class User implements HttpSessionBindingListener { private int id; private String userName; private String password; private String...
阅读全文
posted @ 2015-05-16 11:57 JesseCary
阅读(159)
评论(0)
推荐(0)
新闻信息的javaBean
摘要: //新闻信息的javaBeanpublic class News { //新闻属性 private int id; //id private int categoryId ;//新闻类别id private String title;//新闻标题 private String summary;/...
阅读全文
posted @ 2015-05-16 11:56 JesseCary
阅读(157)
评论(0)
推荐(0)
AddNewsServlet -servlet处理响应请求
摘要: package com.pb.news.web.servlet;import java.io.File;import java.io.IOException;import java.util.Date;import java.util.Iterator;import java.util.List;i...
阅读全文
posted @ 2015-05-16 11:55 JesseCary
阅读(374)
评论(0)
推荐(0)
CharacterEncodingFilter -处理字符格式
摘要: package com.pb.news.web.filter;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConf...
阅读全文
posted @ 2015-05-16 11:54 JesseCary
阅读(238)
评论(0)
推荐(0)
分页-Page
摘要: public void setPageSize(int pageSize) { if(pageSize>0) this.pageSize = pageSize; } public int getRecordCount() { return recordCount; } public void...
阅读全文
posted @ 2015-05-16 11:53 JesseCary
阅读(132)
评论(0)
推荐(0)
//读取配置文件(属性文件)的工具类-ConfigManager
摘要: package com.pb.news.util;import java.io.IOException;import java.io.InputStream;import java.sql.ResultSet;import java.util.Properties;//读取配置文件(属性文件)的工具...
阅读全文
posted @ 2015-05-16 11:52 JesseCary
阅读(1254)
评论(0)
推荐(0)
NewsServiceImpl
摘要: package com.pb.news.service.impl;import java.util.List;import com.pb.news.dao.NewsDao;import com.pb.news.entity.News;import com.pb.news.service.NewsSe...
阅读全文
posted @ 2015-05-16 11:51 JesseCary
阅读(237)
评论(0)
推荐(0)
biz-NewsService
摘要: package com.pb.news.service;import java.util.List;import com.pb.news.entity.News;public interface NewsService { //1.更新选择新闻 public boolean updateNe...
阅读全文
posted @ 2015-05-16 11:50 JesseCary
阅读(166)
评论(0)
推荐(0)
NewsDaoImpl
摘要: package com.pb.news.dao.impl;import java.sql.CallableStatement;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatem...
阅读全文
posted @ 2015-05-16 11:49 JesseCary
阅读(271)
评论(0)
推荐(0)
NewsDao
摘要: package com.pb.news.dao;import java.util.Date;import java.util.List;import com.pb.news.entity.News;public interface NewsDao { //通过新闻id获取/查询新闻 public ...
阅读全文
posted @ 2015-05-16 11:47 JesseCary
阅读(225)
评论(0)
推荐(0)
BaseDao
摘要: package com.pb.news.dao;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import ja...
阅读全文
posted @ 2015-05-16 11:46 JesseCary
阅读(155)
评论(0)
推荐(0)
在线用户数-Constants
摘要: package com.pb.news.constants;public class Constants { public static int ONLINE_USER_COUNT=0;//在线用户数}
阅读全文
posted @ 2015-05-16 11:45 JesseCary
阅读(110)
评论(0)
推荐(0)
NEWS-包名-baseTest-类名-ConfigManager
摘要: package baseTest;import java.io.IOException;import java.io.InputStream;import java.util.Properties;//读取配置文件public class ConfigManager { private stat...
阅读全文
posted @ 2015-05-16 11:43 JesseCary
阅读(198)
评论(0)
推荐(0)
NEWS-包名-baseTest-类名-BaseDao
摘要: package baseTest;import java.sql.Connection;import java.sql.DriverManager;//通过配置文件读取BASEDAOimport java.sql.PreparedStatement;import java.sql.ResultSet...
阅读全文
posted @ 2015-05-16 11:41 JesseCary
阅读(182)
评论(0)
推荐(0)
NEWS-包名-baseTest-类名-baeseDao
摘要: package baseTest;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql....
阅读全文
posted @ 2015-05-16 11:40 JesseCary
阅读(219)
评论(0)
推荐(0)
sql函数
摘要: --字符替换select translate('abcdefgabcdef','abc','123') from dual;select translate('agbfceddeafbgc','abc','123') from dual;--字符串替换select replace('abcdaefg...
阅读全文
posted @ 2015-05-16 11:27 JesseCary
阅读(146)
评论(0)
推荐(0)
数据库常用语句sql
摘要: --查看表结构DESC tablename;DESC tablenam;--删除表即全部数据DROP TABLE tablename;DROP TABLE tablenaem;--使用SQL语句创建约束--主键ALTER TABLE tablename ADD CONSTRAINT pk_约束名 ...
阅读全文
posted @ 2015-05-16 11:26 JesseCary
阅读(110)
评论(0)
推荐(0)
数据源配置与连接池代码
摘要:
阅读全文
posted @ 2015-05-16 11:25 JesseCary
阅读(146)
评论(0)
推荐(0)
三层
摘要: 1.数据访问层只用来访问数据库(数据访问层只做数据相关的操作)。(dao-daoInterface-daoImpl)2.业务逻辑层,所有的业务逻辑全部在此层进行处理。(biz,service层-bizInterface-biz-impl--new的是dao层的接口与实现类)3.表示层,所有显示数据相...
阅读全文
posted @ 2015-05-16 11:24 JesseCary
阅读(123)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告