写了一个接口的实现类,在方法的前面加了@Override居然报错了,要求移除这个注解。据说这个是JDK的版本问题,@Override在JDK5就已经有了,但是有一个小小的BUG就是不支持对接口的实现,认为这不是Override而JDK6修正了这个BUG,无论是对父类的方法覆盖还是对接口的实现都可以加 ...
分类:
其他好文 时间:
2017-09-21 13:52:35
阅读次数:
156
一、查看数据库编码格式 ? 1 mysql> show variables like 'character_set_database'; ? 1 mysql> show variables like 'character_set_database'; ? 1 mysql> show variable ...
分类:
数据库 时间:
2017-09-21 13:29:37
阅读次数:
224
Criteria Query通过面向对象化的设计,将数据查询条件封装为一个对象。简单来讲,Criteria Query可以看作是传统SQL的对象化表示,如: Java代码 Criteria criteria = session.createCriteria(User.class); criteria ...
分类:
其他好文 时间:
2017-09-21 13:21:37
阅读次数:
170
LicensesLicensed to the Apache Software Foundation (ASF) under one or more contributorlicense agreements. See the NOTICE file distributed with this wo ...
分类:
Web程序 时间:
2017-09-21 11:24:11
阅读次数:
1423
1、实例: 下载一首英文的歌词或文章,将所有,.?!等替换为空格,将所有大写转换为小写,统计某几个单词出现的次数,分隔出一个一个的单词。 str='''Counting stars Lately I've been, I've been losing sleepDreaming 'bout the ...
分类:
其他好文 时间:
2017-09-20 23:30:14
阅读次数:
355
原文发表于cu:2017-02-10 参考文档: Elasticsearchyum文档: https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html Logstashyum文档: https://www.elast... ...
分类:
其他好文 时间:
2017-09-20 00:40:03
阅读次数:
222
转载一篇,最原始的出处已不可考,望见谅! 常规篇: 首先,用ps查看进程,方法如下: $ ps -ef ……smx 1822 1 0 11:38 ? 00:00:49 gnome-terminalsmx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helpersmx ...
分类:
系统相关 时间:
2017-09-20 00:37:06
阅读次数:
248
From the Android developer web link: http://developer.android.com/reference/android/content/Intent.html, you can find that it says "It (Intent) is bas ...
分类:
移动开发 时间:
2017-09-19 11:07:10
阅读次数:
171
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ServiceModel; 6 using System.ServiceModel ...
SQL语句 创建表: 1 create table school( 2 nid int not null primary key, 3 name varchar(20) 4 )engine=innodb default charset=utf8; 5 6 create table student( ...
分类:
数据库 时间:
2017-09-18 15:07:49
阅读次数:
271