Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problem with Spring skeleton of Vaadin 24.5.4 #2471

@jalmenUAL

Description

@jalmenUAL

Description of the bug

Hi,

I recently downloaded the latest version of Vaadin (Flow-Java-Maven-Spring) from start.vaadin.com. While working on my project, I encountered an issue when placing my views in the src/main/frontend/views folder, as README suggests. Despite several attempts, the application failed to start correctly and seemed unable to locate the views in that directory.

I am unsure whether this behavior is expected in the latest version. I tried placing the views in various other locations but was unable to resolve the issue.

Subsequently, I downloaded version 23.2 from the repository and noticed that it includes a frontend folder (as in older versions) in the root directory of the project—something that appears to be missing in version 24.5.4. After moving my views to this frontend folder, the application worked as expected.

Could you clarify whether this is an intended change in the latest version, or if there is another recommended approach for structuring the views?

Thank you in advance for your assistance.

Best regards,

Expected behavior

The application should show the default application in localhost:8080

Minimal reproducible example

Run application as default is Ok.
Create a view with New->Other->Vaadin->Vaadin 10+ Design, placing
it at src/main/frontend/views (I tested also src/main/frontend, META-INF and META-INF/frontend)
The MainView.java is not modified.
Run application does not work.

Versions

  • Vaadin / Flow version: 24.5.4
  • Java version: 17
  • OS version: Mac OS
  • Browser version (if applicable): Chrome
  • Application Server (if applicable): Spring
  • IDE (if applicable): Eclipse

Metadata

Metadata

Assignees

No one assigned

    Labels

    Impact: High15% or more of users are affected by the issue.Severity: MajorSeverity - Middle out of blocker, major and minorbug

    Type

    No type

    Projects

    Status

    🔖 Normal Priority (P2)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions