Docs

Documentation versions (currently viewingVaadin 24)
Documentation translations (currently viewingEnglish)

Using Spring with Vaadin

About using Spring with Vaadin applications.

The Spring framework is a well suited application framework for use with Vaadin. Spring Boot is the recommended way to start developing Vaadin applications.

Setting Up a Project

To start a new project with Spring and Vaadin, you can customize a starter from Vaadin Start. Alternatively, you can clone the Project Base for Vaadin and Spring repository.

Warning
Spring Session should not be used

Verify that you do not have dependency of this kind, Redis or Hazelcast, it is not compatible with Vaadin. You should use Kubernetes Kit for session replication instead. .pom.xml

Source code
XML
<dependency>
   <groupId>org.springframework.session</groupId>
   <artifactId>spring-session-redis</artifactId>
</dependency>

Tutorial

A tutorial application which showcases the basic usage of a Vaadin and Spring Boot application is available at https://github.com/vaadin/flow-spring-examples. You can use this application example to test the different concepts and features presented in the documentation.