vaadin / spring

Spring integration for Vaadin
https://vaadin.com/start
173 stars 101 forks source link

SpringBootAutoConfiguration bean Issue #1081

Open MeftunH opened 6 months ago

MeftunH commented 6 months ago

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 https://github.com/vaadin/hilla/issues/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 commented 6 months ago

@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 commented 5 months ago

I have the same issue! My Versions are:

24.3.5 Spring 3.2.2 Cheers