使用Hibernate +
MySQL数据库,写HQL语句时,不要忘了不支持MySQL的limit来自为知笔记(Wiz)
分类:
系统相关 时间:
2014-04-30 13:08:16
阅读次数:
725
1.nginx配置网站目录并修改访问的端口:nginx.conf文件listen
666;//端口默认为80,修改后增强安全性 server_name www.lnmp.org; index index.html index.htm
ind...
分类:
其他好文 时间:
2014-04-29 19:29:01
阅读次数:
450
gcc在linux系统中,默认是没有安装gcc编译器的,可以通过命令rpm -q | grep
gcc来查看。安装命令为:yum -y install gcc安装后,编写一个.c结尾的文件。gcc
test.c就会默认输出一个a.out的输出文件,这个输出文件就是可执行文件。如果加上-o选项,则可以...
分类:
数据库 时间:
2014-04-29 18:11:03
阅读次数:
583
使用Runtime的addShutdownHook(thread)方法: 1 for(int
i=0; i<5; i++){ 2 System.out.println(i); 3 } 4 5 Thread th...
分类:
其他好文 时间:
2014-04-29 17:22:47
阅读次数:
311
2014-04-28
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the
occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:
其他好文 时间:
2014-04-29 16:00:32
阅读次数:
388
不推荐一个分区,而是推荐最起码的分区1、win 7系统2、文件和数据3、备份(分区大小与win
7系统分区相同)备份:本机+DVD(放在一个安全的地方,如朋友家、办公室抽屉)硬件更换较容易,但是数据和照片、视频很难!win
7在使用过程中要求重装系统(不损失数据),也可能要彻底重装(泪!!!!!)双...
2014-04-29
03:05题目:给定一个词典,其中某些词可能能够通过词典里其他的词拼接而成。找出这样的组合词里最长的一个。解法:Leetcode上有Word
Break这道题,和这题基本思路一致。代码: 1 // 18.7 Given a list of words, find out the...
分类:
其他好文 时间:
2014-04-29 14:30:17
阅读次数:
493
I had been waiting for the latest MySQL
connector for .NET to come out so I can move on to the new and sleek Visual
Studio 2012 for my projects. Found...
分类:
数据库 时间:
2014-04-29 14:17:54
阅读次数:
753
Index.jsp struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts...
分类:
Web程序 时间:
2014-04-29 13:57:27
阅读次数:
510
将原起始页面View中 Index和
Controller中的HomeController删除后报这样的错误,在global.asax设置好路由后例:public static void
RegisterRoutes(RouteCollection routes) { ...
分类:
其他好文 时间:
2014-04-29 10:38:47
阅读次数:
544