• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xuxiaoya
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 2

2013年10月29日

JDBCTemplate.java
摘要: package com.pk.xjgs.util;import java.sql.Connection;import java.sql.SQLException;import java.util.List;import org.apache.commons.dbutils.QueryRunner;import org.apache.commons.dbutils.handlers.BeanHandler;import org.apache.commons.dbutils.handlers.BeanListHandler;import org.apache.commons.dbutils.han 阅读全文
posted @ 2013-10-29 23:01 xuxiaoya 阅读(240) 评论(0) 推荐(0)
 
监听器的书写
摘要: import javax.servlet.http.HttpSessionAttributeListener;import javax.servlet.http.HttpSessionBindingEvent;import javax.servlet.http.HttpSessionEvent;import javax.servlet.http.HttpSessionListener;public class onlinelisten implements HttpSessionListener, HttpSessionAttributeListener { public ... 阅读全文
posted @ 2013-10-29 22:56 xuxiaoya 阅读(139) 评论(0) 推荐(0)
 
字符编码过滤器
摘要: import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;public class SetEncodingFilter implements Filter { public void d... 阅读全文
posted @ 2013-10-29 22:55 xuxiaoya 阅读(109) 评论(0) 推荐(0)
 
数据库连接工具类
摘要: package com.pk.xjgs.util;import java.io.IOException;import java.io.InputStream;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Properties;public class DBConn { 阅读全文
posted @ 2013-10-29 22:52 xuxiaoya 阅读(185) 评论(0) 推荐(0)
 
 
上一页 1 2

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3