Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a626f546
Commit
a626f546
authored
Dec 13, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent use of @AliasFor
Closes gh-10836
parent
47c8b573
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
2 deletions
+12
-2
SpringBootApplication.java
...ngframework/boot/autoconfigure/SpringBootApplication.java
+2
-2
TestComponent.java
.../org/springframework/boot/test/context/TestComponent.java
+2
-0
TestConfiguration.java
.../springframework/boot/test/context/TestConfiguration.java
+2
-0
MetaEndpoint.java
...pringframework/boot/configurationsample/MetaEndpoint.java
+4
-0
JsonComponent.java
.../java/org/springframework/boot/jackson/JsonComponent.java
+2
-0
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SpringBootApplication.java
View file @
a626f546
...
...
@@ -58,7 +58,7 @@ public @interface SpringBootApplication {
* Exclude specific auto-configuration classes such that they will never be applied.
* @return the classes to exclude
*/
@AliasFor
(
annotation
=
EnableAutoConfiguration
.
class
,
attribute
=
"exclude"
)
@AliasFor
(
annotation
=
EnableAutoConfiguration
.
class
)
Class
<?>[]
exclude
()
default
{};
/**
...
...
@@ -67,7 +67,7 @@ public @interface SpringBootApplication {
* @return the class names to exclude
* @since 1.3.0
*/
@AliasFor
(
annotation
=
EnableAutoConfiguration
.
class
,
attribute
=
"excludeName"
)
@AliasFor
(
annotation
=
EnableAutoConfiguration
.
class
)
String
[]
excludeName
()
default
{};
/**
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/TestComponent.java
View file @
a626f546
...
...
@@ -24,6 +24,7 @@ import java.lang.annotation.Target;
import
org.springframework.boot.context.TypeExcludeFilter
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.annotation.AliasFor
;
import
org.springframework.stereotype.Component
;
/**
...
...
@@ -50,6 +51,7 @@ public @interface TestComponent {
* a Spring bean in case of an auto-detected component.
* @return the specified bean name, if any
*/
@AliasFor
(
annotation
=
Component
.
class
)
String
value
()
default
""
;
}
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/TestConfiguration.java
View file @
a626f546
...
...
@@ -24,6 +24,7 @@ import java.lang.annotation.Target;
import
org.springframework.boot.SpringBootConfiguration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.annotation.AliasFor
;
/**
* {@link Configuration @Configuration} that can be used to define additional beans or
...
...
@@ -47,6 +48,7 @@ public @interface TestConfiguration {
* Configuration class. See {@link Configuration#value()} for details.
* @return the specified bean name, if any
*/
@AliasFor
(
annotation
=
Configuration
.
class
)
String
value
()
default
""
;
}
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/MetaEndpoint.java
View file @
a626f546
...
...
@@ -22,14 +22,18 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
org.springframework.core.annotation.AliasFor
;
@Target
(
ElementType
.
TYPE
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Endpoint
public
@interface
MetaEndpoint
{
@AliasFor
(
annotation
=
Endpoint
.
class
)
String
id
();
@AliasFor
(
annotation
=
Endpoint
.
class
)
boolean
enableByDefault
()
default
true
;
}
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jackson/JsonComponent.java
View file @
a626f546
...
...
@@ -25,6 +25,7 @@ import java.lang.annotation.Target;
import
com.fasterxml.jackson.databind.JsonDeserializer
;
import
com.fasterxml.jackson.databind.JsonSerializer
;
import
org.springframework.core.annotation.AliasFor
;
import
org.springframework.stereotype.Component
;
/**
...
...
@@ -67,6 +68,7 @@ public @interface JsonComponent {
* a Spring bean in case of an autodetected component.
* @return the component name
*/
@AliasFor
(
annotation
=
Component
.
class
)
String
value
()
default
""
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment