- 博客(10)
- 资源 (5)
- 收藏
- 关注
原创 mysql中文乱码
首先确定 mysql的字符集show variables like 'character%';| character_set_client | utf8 || character_set_connection | utf8 || character_set_dat
2014-08-20 16:40:28
407
原创 利用classloader机制创建线程安全的懒汉单例模式
public class Singleton{ private Singletion(){} private static class SingletonHandle{ private static final INSTANCE=new Singleton(); } public static Singleton getInstance(){
2014-08-08 12:23:36
1005
原创 div中ul的上下边距
index.html #user{ width:998px; height:50px; background-color:red; } #navigater { width:998px; height:50px; background-color:blue; } #navigater ul{ list-style-type:none; } #na
2014-08-04 10:23:37
6879
原创 linux 下 apache2和subverion的通用安装和配置(无权限)
1、 安装apr1.5.1./configure --prefix=/opt/apr1.5.1makesudo make install2、安装apr-util-1.5.3./configure --prefix=/opt/apr_util_1.5.3 --with-apr=/opt/apr1.5.1makesudo make install3、安装apache2
2014-07-31 14:41:37
2381
1
原创 Servlet异常:java.lang.IllegalStateException: Cannot forward after response has been committed
原因是response已经提交过,比如代码里含有
2014-07-03 08:14:07
687
原创 Servlet中 response.addCookie()不成功
PrintWriter pw = response.getWriter(); pw.close(); System.out.println("start"); Cookie c = new Cookie("myname", "yangdapeng"); c.setMaxAge(3600); response.addCookie(c); System.
2014-05-08 15:35:10
14620
2
原创 PrintWriter类的write方法抛出NullPointException
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub String contentType = response.getContent
2014-04-22 18:03:28
7320
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人