1.依赖依赖就是有联系,有地方使用到它就是有依赖它,一个系统不可能完全避免依赖。如果你的一个类或者模块在项目中没有用到它,恭喜你,可以从项目中剔除它或者排除它了,因为没有一个地方会依赖它。下面看一个简单的示例: /// /// 用户播放媒体文件 /// public cl...
分类:
其他好文 时间:
2014-07-26 01:08:56
阅读次数:
186
org.hibernate.LazyInitializationException: could not initialize proxy - no Session延迟初始化错误是运用Hibernate开发项目时最常见的错误。如果对一个类或者集合配置了延迟检索策略,那么必须当代理类实例或代理集合处于...
分类:
其他好文 时间:
2014-07-26 00:03:46
阅读次数:
357
Scale9Sprite在用Scale9Sprite.create的时候出现Uncaught TypeError: Cannot call method 'create' of undefined这个错误,后来发现在默认情况下,project.json里的modules只自带cocos2d模块,通过...
分类:
Web程序 时间:
2014-07-25 19:00:01
阅读次数:
361
1:Server ErrorInternet Information Services 7.5Error SummaryHTTP Error 500.19 - Internal Server ErrorThe requested page cannot be accessed because the...
分类:
Web程序 时间:
2014-07-25 18:58:42
阅读次数:
587
use Omniture select VLR.YearMonth ,VLR.VisitorID ,VLR.ConsultantID ,VLR.Visits ,CL.LevelID ,CL.[Status] ,IfNew = case when (VLR.YearMonth=startmont...
分类:
其他好文 时间:
2014-07-25 16:47:11
阅读次数:
223
Class.forName是一个静态方法,同样可以用来加载类。该方法有两种形式:Class.forName(String name, boolean initialize, ClassLoader loader)和 Class.forName(String className)。第一种形式的参数 name表示的是类的全名;initialize表示是否初始化类;loader表示加载时使用的类加载器。第二种形式则相当于设置了参数 initialize的值为 true,loader的值为当前类的类加载器。...
分类:
其他好文 时间:
2014-07-24 23:35:53
阅读次数:
385
信息: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.miracle.dm.doc.catalog.model.UserInfo
原来的查询语句:
String sql = "select a.* from tb_user_info a where a.cat_code like '"+catCo...
分类:
数据库 时间:
2014-07-24 23:17:33
阅读次数:
331
To import the library to Android Studio, there is two methods that can (or cannot) work. The first one worked for me, but when I tried the second, it ...
分类:
移动开发 时间:
2014-07-24 22:42:13
阅读次数:
284
roreax,cl==>eax=(eax>>cl)+(eaxeax=(eax>(sizeof(eax)-cl));
分类:
编程语言 时间:
2014-07-24 22:22:52
阅读次数:
236
解决办法:vi /etc/sysconfig/selinux将:SELINUX=enforcing改为:#SELINUX=enforcingSELINUX=disabled 重启linux
分类:
系统相关 时间:
2014-07-24 14:42:05
阅读次数:
245