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
c1a16f5f
Commit
c1a16f5f
authored
Sep 03, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
Closes gh-18117
parents
4fa41054
43108d54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
SpringBootApplication.java
...ngframework/boot/autoconfigure/SpringBootApplication.java
+13
-0
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SpringBootApplication.java
View file @
c1a16f5f
...
@@ -32,6 +32,7 @@ import org.springframework.context.annotation.ComponentScan.Filter;
...
@@ -32,6 +32,7 @@ import org.springframework.context.annotation.ComponentScan.Filter;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.FilterType
;
import
org.springframework.context.annotation.FilterType
;
import
org.springframework.core.annotation.AliasFor
;
import
org.springframework.core.annotation.AliasFor
;
import
org.springframework.data.repository.Repository
;
/**
/**
* Indicates a {@link Configuration configuration} class that declares one or more
* Indicates a {@link Configuration configuration} class that declares one or more
...
@@ -77,6 +78,12 @@ public @interface SpringBootApplication {
...
@@ -77,6 +78,12 @@ public @interface SpringBootApplication {
/**
/**
* Base packages to scan for annotated components. Use {@link #scanBasePackageClasses}
* Base packages to scan for annotated components. Use {@link #scanBasePackageClasses}
* for a type-safe alternative to String-based package names.
* for a type-safe alternative to String-based package names.
* <p>
* <strong>Note:</strong> this setting is an alias for
* {@link ComponentScan @ComponentScan} only. It has no effect on {@code @Entity}
* scanning or Spring Data {@link Repository} scanning. For those you should add
* {@link org.springframework.boot.autoconfigure.domain.EntityScan @EntityScan} and
* {@code @Enable...Repositories} annotations.
* @return base packages to scan
* @return base packages to scan
* @since 1.3.0
* @since 1.3.0
*/
*/
...
@@ -89,6 +96,12 @@ public @interface SpringBootApplication {
...
@@ -89,6 +96,12 @@ public @interface SpringBootApplication {
* <p>
* <p>
* Consider creating a special no-op marker class or interface in each package that
* Consider creating a special no-op marker class or interface in each package that
* serves no purpose other than being referenced by this attribute.
* serves no purpose other than being referenced by this attribute.
* <p>
* <strong>Note:</strong> this setting is an alias for
* {@link ComponentScan @ComponentScan} only. It has no effect on {@code @Entity}
* scanning or Spring Data {@link Repository} scanning. For those you should add
* {@link org.springframework.boot.autoconfigure.domain.EntityScan @EntityScan} and
* {@code @Enable...Repositories} annotations.
* @return base packages to scan
* @return base packages to scan
* @since 1.3.0
* @since 1.3.0
*/
*/
...
...
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