今天在使用poi解析xls文件的时候出现了如下异常 Exception in thread"main"java.lang.RuntimeException: Expected an EXTERNSHEET record but got (org.apache.poi.hssf.record.SSTR...
分类:
其他好文 时间:
2015-07-15 16:32:33
阅读次数:
307
场景
要求某个字段的一个特定的值,要放在第一行显示。
实现方式SELECT * FROM company_operator WHERE 1=1 and companyid=1
order by username='admin' DESC ,isadmin ASC
这样就实现了username为admin的数据显示在了最上方...
分类:
数据库 时间:
2015-07-14 22:39:41
阅读次数:
309
这个看起来很弱爆的问题其实是因为其他的配置文件中已经出现了为xx定义好的注入.如果用@Autowired就会得到上面的错误 , 但是用@Resource的时候就会看到类似下面的错误Bean named 'moneyRecordDao' must be of type [com.fuscent.cor...
分类:
其他好文 时间:
2015-07-14 13:11:13
阅读次数:
188
运行pig时报如下错误
2015-07-14 10:41:12,869 [main] ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected
解决办法:
删除{HADOOP_HOME}/share/had...
分类:
其他好文 时间:
2015-07-14 11:26:47
阅读次数:
113
控制台执行出现如下报错
Application windows are expected to have a root view controller at the end of application launch
解决办法
在AppDelegate.m中的
- (BOOL)application:(UIApplication *)application...
分类:
移动开发 时间:
2015-07-13 18:40:09
阅读次数:
125
问题描述Keil V4.72升级到V5.1x之后,原来编译通过的工程,出现了如下错误:.\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\STM32f10x.h(298): error: #67: expected a "}原因分析 Keil V4.7....
分类:
其他好文 时间:
2015-07-12 20:19:05
阅读次数:
168
工作中经常需要对python的字典进行排序,下面就简单介绍一下如何对字典排序:使用sorted命令,默认进行从大到小字母序排序:>>> from operator import itemgetter>>> a = {}>>> a['1'] = 1>>> a['2'] = 2>>> a['3'] = ...
分类:
编程语言 时间:
2015-07-12 17:18:00
阅读次数:
150
题目:
Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
题意:
不使用乘法,除法和取余操作,令两个整数相除.
如果溢出,就返回 MAX_INT.
算法分析:
参考博客http://blog.csdn...
分类:
编程语言 时间:
2015-07-11 13:44:27
阅读次数:
163
一、运算符重载 1、运算符重载 C++允许将运算符重载扩展到用户定义的类型。 要重载运算符,需使用被称为运算符函数的特殊函数形式。运算符函数的格式如下: operatorop(argument list); 例如,operator+()重载+运算符,operator*()重载*运算符...
分类:
编程语言 时间:
2015-07-10 20:30:58
阅读次数:
204
一.一般形式返回类型 operator 操作符 (参数列表)二.成员函数or友元函数?大部分运算符重载函数既可以是成员函数,也可以使友元函数。使用友元函数的形式如下: friend 返回类型 operator 操作符 (参数列表) eg: 成员函数:Int operator + (...
分类:
其他好文 时间:
2015-07-10 18:23:58
阅读次数:
111