Skip to content

Exclude AutoConfiguration via Properties #2435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
twicksell opened this issue Jan 30, 2015 · 7 comments
Closed

Exclude AutoConfiguration via Properties #2435

twicksell opened this issue Jan 30, 2015 · 7 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@twicksell
Copy link

It would be nice to be able to exclude AutoConfiguration classes via a property in addition to the Annotation approach. This can be helpful for disabling features without building a new artifact or for managing AutoConfig's across an org by sharing prop files.

@philwebb philwebb added this to the 1.3.0 milestone Feb 3, 2015
@philwebb philwebb added the type: enhancement A general enhancement label Feb 3, 2015
@philwebb
Copy link
Member

philwebb commented Feb 3, 2015

👍

@michaeltecourt
Copy link

Would be really cool

@snicoll
Copy link
Member

snicoll commented May 21, 2015

See also #2939

@snicoll snicoll self-assigned this Aug 3, 2015
@snicoll
Copy link
Member

snicoll commented Aug 3, 2015

I am tempted to give that a try with spring.application.exclude-auto-configurations - Thoughts?

snicoll added a commit to snicoll/spring-boot that referenced this issue Aug 3, 2015
Add `spring.application.exclude-auto-configurations` to control the list
of auto-configuration classes to exclude via configuration. Merge the
exclusions defined on the `@EnableAutoConfiguration` or
`@SpringBooApplication` if any.

Closes spring-projectsgh-2435
@philwebb
Copy link
Member

philwebb commented Aug 3, 2015

I'd prefer a different prefix. spring.application is currently bound to SpringApplication which isn't directly aware of auto-configuration. Perhaps spring.autoconfigure.exclude?

@snicoll
Copy link
Member

snicoll commented Aug 4, 2015

That's spring.main but your key looks better than mine so let's go with that.

@ghost

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

5 participants