Skip to content

tanzx/annotationprocessing101

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

annotationprocessing101

This repository is part of the blog entry I have written about annotation processing.

http://hannesdorfmann.com/annotation-processing/annotationprocessing101

译文:

http://www.importnew.com/15246.html

我在eclipse下maven项目中运行了一下,能够得到正确结果。但是我发现@AutoService没起作用,所以我直接打包一个特定的文件javax.annotation.processing.Processor到META-INF/services路径下。或许是我编译哪里设置得有问题。还要再研究一下@AutoService到底怎样才能起作用。

stackoverflow上关于注解处理的问题:

https://stackoverflow.com/questions/31653798/dagger-2-not-generateing-components-on-eclipse

eclipse中maven处理注解的插件:m2e-apt

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%