Running vaadin flow along with vaadin-8

127 views Asked by At

I have a working vaadin-8 application. I want to migrate this application to vaadin-23.I have added dependencies related to vaadin-23

            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-bom</artifactId>
                <version>${vaadin23.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

i am able to create views based on vaadin-23. But the problem is my vaadin-23 views with @Route annotation are not being used. I am not able to hit those urls from the browser. Do I need to create some servlet for vaadin-23 as I did for vaadin-8?

1

There are 1 answers

0
Tatu Lund On

If the application is not using Spring check this example project for step by step migration from Vaadin 8 to Vaadin 14 running both apps at the same time in the same workspace. Scenario with Vaadin 23 should not be different regarding project setup. github.com/TatuLund/migrate-v8-to-v14/tree/master

But if you use Spring Boot, that is most likely the case. Both Vaadin versions require different version of the Spring add-ons, and those in turn define new scopes and there will be a clash.

In such case one can always deploy two different wars either on different context paths or different ports. Naturally you should keep the projects separated and use different IDE instance for each one. But if your requirement is to keep two apps running on the same server, so that it is easy to switch between them, it will work for that purpose.