随笔分类 -  Java技术

摘要:在开发Android应用程序的实现,有时候需要引入第三方so lib库,但第三方so库比较大,例如开源第三方播放组件ffmpeg库, 如果直接打包的apk包里面, 整个应用程序会大很多.经过查阅资料和实验,发现通过远程下载so文件,然后再动态注册so文件时可行的。主要需要解决下载so文件存放位置以及文件读写权限问题。 阅读全文
posted @ 2015-01-05 12:34 Blue Sky ...... 阅读(6346) 评论(3) 推荐(2)
摘要:EhCache 是一个纯Java的进程内缓存框架,具有快速、精干等特点,是Hibernate中默认的CacheProvider。 阅读全文
posted @ 2013-08-14 17:42 Blue Sky ...... 阅读(4185) 评论(0) 推荐(0)
摘要:什么时候spring容器启动?其实就是程序中执行加载 web.xml配置文件的时候。Spring可以通过(Servlet)org.springframework.web.context.ContextLoaderServlet和Listener(org.springframework.web.context.ContextLoaderListener)两个类作为Spring启动的入口。1.应用程序下加载ApplicationContext context = new FileSystemXmlApplicationContext("WebRoot/WEB-INF/applicatio 阅读全文
posted @ 2011-04-28 15:23 Blue Sky ...... 阅读(1276) 评论(0) 推荐(0)
摘要:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema 阅读全文
posted @ 2011-04-28 14:14 Blue Sky ...... 阅读(652) 评论(0) 推荐(0)
摘要:publicclassArrayOperation{//二分查找算法publicstaticintbranchSearch(int[]array,intsearchNum){if(array==null)thrownewNullPointerException("NullReferrence");if(array.length==0)thrownewIllegalArgumentException("ArrayLengthisZero");intlow=0,high=array.length;intmiddle=(high+low)/2;intindex 阅读全文
posted @ 2011-04-07 13:33 Blue Sky ...... 阅读(5700) 评论(1) 推荐(0)
摘要:JAVA集合类介绍和使用类关系示意图Iterable(接口)│└--Collection(接口)├-List(接口)│├-LinkedList不同步(构造同步:Listlist=Collections.synchronizedList(newLinkedList(...));)│├-ArrayList不同步│└-Vector同步│ └--Stack同步└-Set├--EnumSet├--HashSet--LinkedHashSet└--TreeSetMap├--Hashtable├--HashMap--LinkedHashMap└--WeakHashMapMap接口:|+--WeakHashM 阅读全文
posted @ 2011-04-07 13:26 Blue Sky ...... 阅读(1274) 评论(0) 推荐(0)