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

SpringBootAutoConfiguration bean Issue #1081

Open
MeftunH opened this issue Jan 21, 2024 · 2 comments
Open

SpringBootAutoConfiguration bean Issue #1081

MeftunH opened this issue Jan 21, 2024 · 2 comments

Comments

@MeftunH
Copy link

MeftunH commented Jan 21, 2024

Hi,I'm trouble in beans.So,when i try to start vaadin X Spring boot application gives that error : "Field context in com.vaadin.flow.spring.SpringBootAutoConfiguration required a bean of type 'org.springframework.web.context.WebApplicationContext' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.web.context.WebApplicationContext' in your configuration.".
Here is my props :
rver.port=${PORT:8080}
logging.level.org.atmosphere = warn
spring.mustache.check-template-location = false

Launch the default browser when starting the application in development mode

vaadin.launch-browser=true

Workaround for vaadin/hilla#842

spring.devtools.restart.additional-exclude=dev/hilla/openapi.json

To improve the performance during development.

For more information https://vaadin.com/docs/flow/spring/tutorial-spring-configuration.html#special-configuration-parameters

vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.example.application
spring.jpa.defer-datasource-initialization = true
spring.sql.init.mode = always
server.servlet.session.tracking-modes = cookie
spring.datasource.url=xxxxxxxxxxxxxxxx
spring.datasource.username=xxxxxxxx
spring.datasource.password=xxxxxxxx
spring.datasource.hikari.schema=xxxxxxxxxx
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.format_sql=true

logging.level.org.springframework.web.reactive.function.client=INFO
logging.level.org.springframework=INFO
logging.level.root=INFO
logging.level.org.hibernate=INFO

spring.jackson.serialization.fail-on-empty-beans=false
spring.session.store-type=jdbc
spring.session.jdbc.initialize-schema=always
spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
spring.main.web-application-type=NONE
spring.main.allow-bean-definition-overriding=true

@mshabarov
Copy link
Contributor

@MeftunH could you please give us the Vaadin and Spring versions that you use and possible an example project that we can use to reproduce it ?

@Throws100
Copy link

I have the same issue! My Versions are:

<vaadin.version>24.3.5</vaadin.version>
Spring 3.2.2

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔎 Investigation
Development

No branches or pull requests

3 participants