Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kevin
committed
Jul 11, 2019
1 parent
c1a24e0
commit d8be663
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/io/zhudy/kitty/annotation/NoIntegrationTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.zhudy.kitty.annotation | ||
|
||
import org.springframework.context.annotation.Profile | ||
|
||
/** | ||
* [Spring Annotation Programming Model](https://github.com/spring-projects/spring-framework/wiki/spring-annotation-programming-model) | ||
* 添加注解可在集群测试环境 `integration-test` 中禁用某些功能,作用范围与 [Profile] 一致。 | ||
* | ||
* @see Profile | ||
* @author Kevin Zou (kevinz@weghst.com) | ||
*/ | ||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) | ||
@Retention | ||
@MustBeDocumented | ||
@Profile("!integration-test") | ||
annotation class NoIntegrationTest | ||
|