cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class, " ...
分类:
其他好文 时间:
2017-02-05 11:11:38
阅读次数:
456
前言 在写单元测试的时候,经常会遇到需要断言方法需要抛出一个异常这种场景,这时,就会用到Junit的异常测试功能 方式 1.使用@Test注解自带的 expected 属性来断言需要抛出一个异常,如下: @Test(expected = IllegalStateException.class) pu... ...
分类:
其他好文 时间:
2017-02-04 23:15:41
阅读次数:
208
将MVC网站部署在server 2008上后,出现 HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. ...
JDK 1.5 之前的同步容器 JDK 1.5 之前, 主要包括: 同步容器 (Vector 和 Hashtable) 同步包装类 (Collections.synchronizedXxx) 这些类的共同特征是, 公共方法都是由 synchronized 来修饰的, 以限制一次只能有一个线程能访问容 ...
分类:
编程语言 时间:
2017-01-31 20:52:56
阅读次数:
346
上传是web程序中常见的功能,当使用上传时,需要把form表单中的enctype属性改为multipart/form-data,这样就使用了二进制进行上传,而后台需要解析这些数据。DispatcherServlet并不能解析它,而需要委托给Spring中的MultipartResolver接口实现去 ...
分类:
编程语言 时间:
2017-01-28 16:35:16
阅读次数:
242
You are given N circles and expected to calculate the area of the union of the circles ! Input The first line is one integer n indicates the number of ...
分类:
其他好文 时间:
2017-01-26 18:56:54
阅读次数:
203
上一篇介绍了 函数回调,高阶函数以及函数柯里化等高级函数应用,同时,因为正在学习JavaScript·函数式编程,想整理一下函数式编程中,对于我们日常比较有用的部分。 为什么函数式编程很重要? 学习过C++,java这些面向对象编程语言,我们大概都知道面向对象编程就是把目标问题分成几个部分,实现各部 ...
分类:
编程语言 时间:
2017-01-25 18:52:42
阅读次数:
218
The risk premium is the return in excess of the risk-free rate of return that an investment is expected to yield. An asset's risk premium is a form of ...
分类:
其他好文 时间:
2017-01-22 19:13:53
阅读次数:
210
“App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app ...
分类:
移动开发 时间:
2017-01-18 09:45:46
阅读次数:
176
1989年,为了打发圣诞节假期,Guido开始写Python语言的编译器。Python这个名字,来自Guido所挚爱的电视剧Monty Python’s Flying Circus。他希望这个新的叫做Python的语言,能符合他的理想:创造一种C和shell之间,功能全面,易学易用,可拓展的语言。 ...
分类:
编程语言 时间:
2017-01-12 08:51:17
阅读次数:
173