时间是一切财富中最宝贵的财富。——德奥弗拉斯多在%spring%/docs/spring-framework-reference/htmlsingle/index.html文件的5.14.4ConvenientApplicationContextinstantiationforwebapplications。如果要创建ApplicationContext的实例,有两种方法:一种是使用代码的方式,另一..
分类:
移动开发 时间:
2016-07-21 22:11:57
阅读次数:
918
连接https网址时发生错误。在服务器密钥交换握手信息中SSL收到了一个弱临时Diffie-Hellman密钥。(错误码:ssl_error_weak_server_ephemeral_dh_key)使用火狐浏览器,地址栏里输入about:config,回车新建或修改以下4个布尔值为false即可(搜索dhe能找到):security.ssl3.dhe_..
分类:
其他好文 时间:
2016-07-21 20:16:44
阅读次数:
191
1.android系统提供的Drawable资源非常丰富,而且效果随着版本提升以有增多。从笔者测试来看,在使用系统的提供的Drawable时,高度和宽度最好使用wrap_content,这样防止有的图片失真。
resource reference:
In Java: R.drawable.filename
In XML: @[package:]drawable/filename
...
分类:
移动开发 时间:
2016-07-21 13:04:34
阅读次数:
497
reference DateFormat in a Multithreading Environment ...
分类:
编程语言 时间:
2016-07-21 12:35:03
阅读次数:
114
官方API文档:https://developer.android.com/reference/android/os/Environment.html/**
* Android中外存储设备(SD卡)操作
*
* @description:
* @author ldm
* @date 2016-7-21 上午9:33:53
*/
public class ExternalStorage...
分类:
移动开发 时间:
2016-07-21 11:04:42
阅读次数:
210
1.Instance Constructors and Classes (Reference Types) Constructors methods : 1.allow an instance of a type to be initialized to a good state. 2.are al ...
分类:
其他好文 时间:
2016-07-19 18:50:49
阅读次数:
160
前言
iOS5 之前 所有的 开发都需要开发者自己控制自己的对象的引用和释放。使用的修饰符是 assign、copy、retain
iOS5 之后,Apple 推出了ARC(自动引用计数)机制,推出了新的修饰符替代之前的修饰符 strong、weak简单说明
1:ARC环境下,strong代替retain.weak代替assign
2:weak的作用:在ARC环境下,,所有指向这个对象的w...
分类:
移动开发 时间:
2016-07-19 10:53:39
阅读次数:
212
1、仔细区别pointer和references
不论pointer或是references都使你间接参考其它对象。
没有所谓的null reference。一个reference必须总代表某个对象。
如果你有一个变量,其目的是用来指向(代表)另一个对象,但是也有可能它不指向(代表)任何对象,那么你应该使用pointer,因为你可以将指针设为null。换个角度...
分类:
编程语言 时间:
2016-07-19 10:34:46
阅读次数:
228
GUID, the abbreviation of "Global Unique Identifier", is a unique reference number used as an identifier in computer software. ...
《Java虚拟机规范》阅读笔记-数据类型 JVM 数据类型 1.概述 Java虚拟机的数据类型可分为两大类:原始类型(Primitive Types,也称为基本类型)和引用类型(Reference Types)。 Java虚拟机用不同的字节码指令来操作不同的数据类型 。 2.原始类型 原始类型是最基 ...
分类:
其他好文 时间:
2016-07-15 17:02:48
阅读次数:
149