Vaadin com.vaadin.spring.annotation

hi,

i have pom for univers-ui module where i have:

<?xml version="1.0" encoding="UTF-8"?>



newApp
newApp
1.0-SNAPSHOT

4.0.0

<artifactId>univers-ui</artifactId>
<packaging>jar</packaging>

<dependencies>
    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-spring</artifactId>
        <version>23.3.4</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>6.0.5</version>
    </dependency>
</dependencies>

<properties>
    <maven.compiler.source>11</maven.compiler.source>
    <maven.compiler.target>11</maven.compiler.target>
</properties>

in java class:
package com.lukaszjarych.ui.commons;

import com.vaadin.flow.component.UI;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.server.VaadinRequest;
import com.vaadin.flow.theme.Theme;
import com.vaadin.spring.context

@SpringUI(path=UniversMainUI.NAME);
@PageTitle(“Universe”)
@Theme(“valo”)
public class UniversMainUI extends UI {

public static final String NAME = "/ui";

@Override
protected  void init (VaadinRequest request){

}

}

the issue is that SpringUI is not seen by Vaadin.
I am using Intellij. Where is the issue? Can anybody help?
Screenshot_407.png

You shouldn’t use @SpringUI is the root problem. Another problem is that your line 7 in the screenshot is incomplete and missing a ;

Hi Olli

thank you

what do you mean by root problem ?

@vital-koala

i added dependency and i think it should be connected

smoothly :slightly_smiling_face:

but something i missed

SpringUI is not something you need to or should use with Vaadin Flow

oo

great to know this

You might also want to look into Differences Between Vaadin 10+ and Vaadin 8 Applications | Vaadin 8 | Upgrading Guides | Flow | Vaadin 14 Docs

oo thanks!