annotation_processor

注解处理器,在方法上添加@TakeTime注解,可以打印出该方法执行时长

License

License

GroupId

GroupId

io.github.chenwuwen
ArtifactId

ArtifactId

annotation_processor
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

annotation_processor
注解处理器,在方法上添加@TakeTime注解,可以打印出该方法执行时长
Project URL

Project URL

https://chenwuwen.github.io/
Source Code Management

Source Code Management

https://github.com/chenwuwen/annotation_processor

Download annotation_processor

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.chenwuwen/annotation_processor/ -->
<dependency>
    <groupId>io.github.chenwuwen</groupId>
    <artifactId>annotation_processor</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.chenwuwen/annotation_processor/
implementation 'io.github.chenwuwen:annotation_processor:1.0.0'
// https://jarcasting.com/artifacts/io.github.chenwuwen/annotation_processor/
implementation ("io.github.chenwuwen:annotation_processor:1.0.0")
'io.github.chenwuwen:annotation_processor:jar:1.0.0'
<dependency org="io.github.chenwuwen" name="annotation_processor" rev="1.0.0">
  <artifact name="annotation_processor" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.chenwuwen', module='annotation_processor', version='1.0.0')
)
libraryDependencies += "io.github.chenwuwen" % "annotation_processor" % "1.0.0"
[io.github.chenwuwen/annotation_processor "1.0.0"]

Dependencies

runtime (3)

Group / Artifact Type Version
com.google.auto.service : auto-service jar 1.0-rc6
com.squareup : javapoet jar 1.11.1
org.apache.commons : commons-lang3 jar 3.9

Project Modules

There are no modules declared in this project.

annotation_processor

Java插入式注解处理器

这个项目主要是Java插入式注解处理器的一个练手项目, 通过引入依赖,并使用其中的一个@TakeTime注解,在方法上添加@TakeTime注解,可以打印出该方法执行时长

添加依赖:

maven

<!-- https://mvnrepository.com/artifact/io.github.chenwuwen/annotation_processor -->
<dependency>
    <groupId>io.github.chenwuwen</groupId>
    <artifactId>annotation_processor</artifactId>
    <version>1.0.0</version>
</dependency>

gradle

// https://mvnrepository.com/artifact/io.github.chenwuwen/annotation_processor
compile group: 'io.github.chenwuwen', name: 'annotation_processor', version: '1.0.0'

JAVA 插入注解处理器

注: 仅在JDK8下测试通过,未使用其他版本JDK测试

Versions

Version
1.0.0