1、Spring测试 @RunWith(SpringJUnit4ClassRunner.class) // 告诉把Spring容器运行在JVM中 // 若配置文件名=当前测试类名-context.xml,就可以在当前路径找 @ContextConfiguration({"/spring/applic ...
分类:
编程语言 时间:
2017-02-16 22:26:40
阅读次数:
169
package com.sitech.message.controller.task;import java.io.File;//引入类 import java.io.FileInputStream; import java.io.FileNotFoundException; import java ...
分类:
编程语言 时间:
2017-02-14 17:51:22
阅读次数:
269
#import <UIKit/UIKit.h> @interface ProgressHUD : UIView + (void)show; + (void)dismiss; + (void)dismissWithDelay:(NSTimeInterval)delay; @end #import "P ...
分类:
其他好文 时间:
2017-02-10 23:36:04
阅读次数:
353
@RunWith(SpringJUnit4ClassRunner.class)让测试运行于Spring测试环境 @ContextConfiguration 用来指定加载的Spring配置文件的位置,会加载默认配置文件 加载Spring配置文件:@ContextConfiguration(classp ...
分类:
编程语言 时间:
2017-02-05 16:43:06
阅读次数:
181
计时器是经常用到的功能,下面以react nativ的例子简介来写一个倒计时60s的小demo。 代码如下: ...
分类:
其他好文 时间:
2017-02-05 11:29:09
阅读次数:
144
天气接口 聚合数据: http://op.juhe.cn/onebox/weather/query 用例 官方文档 来源:weather.com 百度接口: http://api.map.baidu.com/telematics/v3/weather?location=嘉兴&output=json& ...
com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: C ...
分类:
移动开发 时间:
2017-01-21 11:45:18
阅读次数:
2792
自定义控件 import android.animation.ArgbEvaluator; import android.animation.FloatEvaluator; import android.content.Context; import android.graphics.Color; ... ...
分类:
其他好文 时间:
2017-01-14 19:05:12
阅读次数:
218
1 document.getElementsByName("name") 在Ie低版本,360普通版本,以及火狐低版本不支持。 2 element.innerText 在低版本的火狐中不支持,处理方法如下。 var tDiv = document.createElement("span"); fun ...
分类:
Web程序 时间:
2017-01-12 18:35:08
阅读次数:
329
除了spring相关的jar包之外,还需要引入quartz-all-1.6.6.jar。 spring配置文件增加quartz-bean.xml和quartz-set.xml quartz-bean.xml: quartz-set.xml: 调用的类TestQuartzTask: 除此之外,还需要在 ...
分类:
其他好文 时间:
2017-01-09 18:51:26
阅读次数:
134