Vaadin 14.0.1 spring boot new pages from design

Hello.
I created a spring boot project at https://vaadin.com/start/latest.

I created a new page by design: /frontend/src/login-view.js, checking to create a java companion file.

In the LoginView.java file I set the header as follows:

@PageTitle("login-view")
@Route(value = "login-view")
@Tag("login-view")
@JsModule("./src/login-view.js")
public class LoginView extends PolymerTemplate<LoginView.LoginViewModel> { ... }

MainView.java looks like this:

@Route
@Viewport("width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
@PWA(name = "Project Base for Vaadin Flow with Spring", shortName = "Project Base")
public class MainView extends VerticalLayout { ... }

however is returning me the following message:

Could not navigate to 'login-view'
Reason: Couldn't find route for 'login-view'
Available routes:
    <root>
This detailed message is only shown when running in development mode.

What was left to do? For these are the ways I do in vaadin 13.

Tanks.

When using Spring Boot, Vaadin by default only looks for @Route annotated classes within the same package that contains the @SpringBootApplication annotation. To make it look in other packages, you need to pass those as the value to the @EnableVaadin annotation, e.g. @EnableVaadin({"com.example.myproject.templates"}).

Leif Åstrand:
When using Spring Boot, Vaadin by default only looks for @Route annotated classes within the same package that contains the @SpringBootApplication annotation. To make it look in other packages, you need to pass those as the value to the @EnableVaadin annotation, e.g. @EnableVaadin({"com.example.myproject.templates"}).

thanks, it worked.

This worked for me as well. Thanks!