今天在Review一个老项目的时候,看到一段奇怪的代码。 if (dto.Payment == null) continue; var entity = entries.FirstOrDefault(e => e.LedgerEntryID == dto.LedgerEntryID); dto.Pa ...
出现这个异常说明了跳转页面的url无对应的值. 原因1: Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包 原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件. 原因2: 在springboot的配置文件:application.y ...
分类:
移动开发 时间:
2017-11-29 19:57:14
阅读次数:
1004
拷贝构造函数 如果一个构造函数的第一个参数是自身类类型的引用,且任何额外参数都有默认值,则此构造函数是拷贝构造函数。 拷贝构造函数第一个参数必须是一个引用类型。此参数几乎总是一个const的引用。拷贝构造函数在几种情况下都会被隐式地使用。因此,拷贝构造函数通常不应该是explicit的。 合成拷贝构 ...
分类:
编程语言 时间:
2017-11-26 14:01:33
阅读次数:
186
Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better tha... ...
分类:
编程语言 时间:
2017-11-26 11:06:10
阅读次数:
174
一:首先看下几个ArrayList循环过程删除元素的方法(一下内容均基于jdk7): 二:如果上面的结果算错的话,先看下ArrayList的源码(add和remove为代表) public class ArrayList<E> extends AbstractList<E> implements L ...
分类:
其他好文 时间:
2017-11-24 20:18:44
阅读次数:
225
NLS parameters can be set using the five methods listed. Put the methods in order from highest tolowest according to Oracles order of precedence:A. De ...
分类:
其他好文 时间:
2017-11-14 19:45:43
阅读次数:
160
本文来源:keeptrying 《参数FAST_START_MTTR_TARGET的理解》参数FAST_START_MTTR_TARGET的理解一、FAST_START_MTTR_TARGET参数的作用和实现方法参数FAST_START_MTTR_TARGET参数是一个加快实例恢复的参数,我们可以根... ...
分类:
其他好文 时间:
2017-11-12 14:13:33
阅读次数:
181
一、把字符串转换成整形demo1:QString str = "FF";bool ok;int hex = str.toInt(&ok, 16); // hex == 255, ok == trueint dec = str.toInt(&ok, 10); // dec == 0, ok == fa ...
分类:
其他好文 时间:
2017-11-11 11:24:23
阅读次数:
320
在 PowerDesigner执行命令 Tools->Execute Commands->Edit/Run Scripts 代码一:将Name中的字符COPY至Comment中 Option Explicit ValidationMode = True InteractiveMode = im_Ba ...
分类:
其他好文 时间:
2017-11-07 16:14:41
阅读次数:
172