Skip to content
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

Annotate auto configurations with spring's @ConditionalOnWebApplication #1041

Open
SonReimer opened this issue Aug 8, 2022 · 0 comments
Open

Comments

@SonReimer
Copy link

SonReimer commented Aug 8, 2022

Spring-Boot offers the possibility to start an application as web application with an embedded server or as a standalone application by setting the property
spring.main.web-application-type=none
There are several scenarios that require doing so. Examples are creating a db-creation/update script from hibernate or running a preload without starting the server or dropping the schema in development.
Spring itself uses the annotation @ConditionalOnWebApplication in it's configuration class ServletWebServerAutoConfiguration and I think the vaadin configurations SpringBootAutoConfiguration and SpringSecurityAutoConfiguration should follow the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants