2014年12月25日

摘要: vim /etc/sysconfig/i18n然后把里面的LANG="zh_CN.UTF-8"改成LANG="zh_CN.GB18030" 阅读全文
posted @ 2014-12-25 15:45 lvlv岁月流逝 阅读(99) 评论(0) 推荐(0) 编辑

2014年12月22日

摘要: 原来是调用方法有误正确调用方法: ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); com.springmvc.hibernate.NewsDAO newsda... 阅读全文
posted @ 2014-12-22 18:42 lvlv岁月流逝 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 项目中已经存在 mysql-connector-java-5.1.7-bin.jar 但是运行还是提示“java.lang.ClassNotFoundException: com.mysql.jdbc.Driver”解决方法:将mysql-connector-java-5.1.7-bin.jar拷贝... 阅读全文
posted @ 2014-12-22 18:38 lvlv岁月流逝 阅读(271) 评论(0) 推荐(0) 编辑

2014年12月19日

摘要: use mysqlmysql> select host, user from user;将相应用户数据表中的host字段改成'%';update user set host='%' where user='root';ERROR 1062 (23000): Duplicate entry '%-ro... 阅读全文
posted @ 2014-12-19 14:07 lvlv岁月流逝 阅读(55179) 评论(4) 推荐(4) 编辑
摘要: # service mysqld stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &# mysql -u root mysqlmysql> UPDATE user SET Password=PASSWORD(... 阅读全文
posted @ 2014-12-19 09:00 lvlv岁月流逝 阅读(2339) 评论(0) 推荐(0) 编辑

2014年12月4日

摘要: 1、先看下目录结构2、引用所需的jar文件3、web.xml 配置如下 springmvc org.springframework.web.servlet.DispatcherServlet ... 阅读全文
posted @ 2014-12-04 13:14 lvlv岁月流逝 阅读(258) 评论(2) 推荐(0) 编辑

2014年12月2日

摘要: Myeclipse默认打开文件的方式是 jsp design,每次双击或者使用Ctrl+Shift+R打开 就会用这个打开 ,太慢了而且多次导致Myeclipse挂掉。可以通过以下的方式转化成你想要的打开方式,方法如下:Myecipse->preferences->General->editors-... 阅读全文
posted @ 2014-12-02 20:15 lvlv岁月流逝 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 在MyEclipse 9.0中安装SVN插件遇到一些问题,参考网上一些方法,最终解决。以下是个人认为比较简易的方法,供参考:安装过程:(1)svn的插件版本site-1.8.14.zip(可根据自己需要选择不同版本)。(2)下载链接:http://subclipse.tigris.org/servl... 阅读全文
posted @ 2014-12-02 19:18 lvlv岁月流逝 阅读(184) 评论(0) 推荐(0) 编辑

2014年12月1日

摘要: 如:a.cpp 声明int a=9;要在b.cpp文件中使用变量 aextern int a;int b=1;cout<<a+b;结果为10; 阅读全文
posted @ 2014-12-01 18:16 lvlv岁月流逝 阅读(2091) 评论(0) 推荐(0) 编辑

2014年11月26日

摘要: 引用struts2所用到的jarweb.xml配置如下 struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* ... 阅读全文
posted @ 2014-11-26 16:54 lvlv岁月流逝 阅读(203) 评论(0) 推荐(0) 编辑

导航