第一种显示注入function demoController(a){}demoController.$inject=['$scope']第二种显示注入angular.module('myApp',[]).controller('demoController',['$scope',function(a...
分类:
其他好文 时间:
2015-01-31 12:02:25
阅读次数:
213
按照bin/nutch下的脚步一步一步的执行抓取:Inject,Generate,Fetcher,Parse,Updatedb,Solrindex,SolrDump.每部其实都可以打出 “bin/nutch $commands”命令来进行命令的提示,例如:"bin/nutch Inject" 注入U...
分类:
其他好文 时间:
2015-01-27 01:50:15
阅读次数:
239
题外话,文章中有大量的标识1 标识2,大家可以用ctrl+f来查找。
构成缓存的类
主要就是以下两个:
com.opensymphony.xwork2.inject.util.ReferenceCache
com.opensymphony.xwork2.inject.util.ReferenceMap前者继承自后者。
我们先看看ReferenceMap
public class ...
分类:
其他好文 时间:
2015-01-24 21:27:29
阅读次数:
327
上周以为搞定了Nutch 2.x+Hadoop 2.5.2+Hbase0.94.26的整合,于是这周开始真正执行nutch抓取tieba的数据:nutch inject /urls -crawlId tieba谁知道报错:java.lang.NoSuchMethodError: org.apache...
分类:
其他好文 时间:
2015-01-20 19:50:08
阅读次数:
156
1 /* 2 * 演示Unity 注入 3 * */ 4 using Microsoft.Practices.Unity; 5 using System; 6 7 namespace Unity.Property.Inject 8 { 9 class Program...
分类:
编程语言 时间:
2015-01-11 13:33:49
阅读次数:
324
直接看效果。此linearLayout只有两个Button ,当选中Button1,Button1有个下划线选中效果。当选中Buton2,Button2有个下划线选中效果。
如下图。
package com.daoge.ui;
import roboguice.activity.RoboActivity;
import roboguice.inject.Inject...
分类:
移动开发 时间:
2015-01-08 11:22:31
阅读次数:
277
1、浏览器载入HTML,然后把它解析成DOM。
2、浏览器载入angular.js脚本。
3、AngularJS等到DOMContentLoaded事件触发。
4、AngularJS寻找ng-app指令,这个指令指示了应用的边界。
5、使用ng-app中指定的模块来配置注入器($inject...
分类:
Web程序 时间:
2015-01-07 12:30:38
阅读次数:
159
Cross-site scripting (XSS) is a type of computer security vulnerability typically found in Web applications. XSS enables attackers to inject client-si...
分类:
其他好文 时间:
2015-01-05 10:49:38
阅读次数:
160
使用ButterKnife做android开发时,发现无法inject,如下,tvInfo总是null。 @InjectView(R.id.textView1Info) TextView tvInfo; @Override public void onCreate(Bundle savedInsta...
分类:
其他好文 时间:
2015-01-04 16:44:43
阅读次数:
174
Dagger 2是Dagger 1.x的增强版,在Dagger 1.x中,@Inject和@Provides annotation 构成了对象的图谱(graph),依靠之间的依赖
关系而链接在一起。通过定义好的图谱集(ObjectGraph)可以方便的调用代码。而在Dagger 2中,这种关系被带有无参方法的接口代替,
这种方法返回的类型就是所需类型。这种接口的实现是通过@Component 注解且传入modules参数来定义的...
分类:
移动开发 时间:
2014-12-24 00:02:32
阅读次数:
246