Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一堆错误啊、、、、、 #5

Closed
edocevol opened this issue Jun 16, 2016 · 10 comments
Closed

一堆错误啊、、、、、 #5

edocevol opened this issue Jun 16, 2016 · 10 comments

Comments

@edocevol
Copy link

@before("publicMethods() && annotation(countedAnnotation)")
public void instrumentCounted(JoinPoint jp, Counted countedAnnotation)
{
String name= name(jp.getTarget().getClass(), StringUtils.hasLength(countedAnnotation.name())?
countedAnnotation.name():jp.getSignature().getName(),"counter");
Counter counter = counters.computeIfAbsent(name,key->metricRegistry.counter(java.lang.String.valueOf(key)));
}

@Before("publicMethods()&&annotation(meteredAnnotaion)")
public void instrumentMetered(JoinPoint jp, Metered meteredAnnotaion)
{
    String name=name(jp.getTarget().getClass(),StringUtils.hasLength(meteredAnnotaion.name())?meteredAnnotaion.name():jp.getSignature().getName(),"meter");
}
@fujohnwang
Copy link
Owner

fujohnwang commented Jun 22, 2016

你是说代码错误还是啥? r如果是你在另一个issue里提的编译错误,那么,请先确认你了解java基础的静态import特性 ;)

@edocevol
Copy link
Author

额,意思是看你的书代码跑不起来,新手有点费力~[好难过],点击[ http://pinyin.cn/e26186 ]查看表情

发自我的小米手机在 扶墙老师 [email protected],2016年6月22日 下午4:05写道:你是说代码错误还是啥?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

@fujohnwang
Copy link
Owner

https://yunpan.cn/cRiuHFmYAwXjf (提取码:b976)

其实, 给你代码也跑步起来, 更多是希望读者自己搞明白原理, 不过,既然你要,那就放这里吧, 有些项目创建纯粹只是为了放代码的,不一定构建成功。

@edocevol
Copy link
Author

嗯嗯,谢谢老师~前一封邮件没说清楚,我把你的书基本上看完了,现在在巩固周边的知识,提问的时候还不咋明白。非常感谢您的回复~

发自我的小米手机在 扶墙老师 [email protected],2016年6月27日 下午2:06写道:https://yunpan.cn/cRiuHFmYAwXjf (提取码:b976)

其实, 给你代码也跑步起来, 更多是希望读者自己搞明白原理, 不过,既然你要,那就放这里吧, 有些项目创建纯粹只是为了放代码的,不一定构建成功。

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

@booom
Copy link

booom commented Jan 18, 2017

来晚了,云盘挂了,福强老师能否再分享一次源码?或者哪位有源码的同学能否代福强老师分享一下,谢谢啊:)
@sixtrees @yamtg

@stevenxiale
Copy link

云盘失效了 谁能再贴一下代码

@gitstudy007
Copy link

云盘404了

@KevinZMan
Copy link

@unnnnhappy
Copy link

可不可以再分享一下云盘

@fujohnwang
Copy link
Owner

artifacts lost, sorry, guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants