I have an existing Spring Boot => Angular project. I am trying to add Vaadin to it to replace the Angular but without success so far.
-
Is there a tutorial for doing this? I’m trying to move various pieces from the tutorial to the new project, I can build but it has various issues.
-
How are Vaadin views found by vaadin? How are they constructed? Does the BeanFactory get involved? Are constructed via the "new” keyword? If so how are they found? Does the routing make use of the Spring MVC foundation? Is the router a Spring Bean that I can access?
-
The tutorial uses JPA, does vaadin require that? Or can it utilize any Spring Data Repository?
-
How does the Vaadin UI communicate with the backend? Do I have any control over this? I already have a working REST backend for Angular, ideally I could just use it or the existing Repositories.
-
What resources does vaadin need at runtime? How can I verify those are correct?
Notice I believe I can use the vaadin-core (free) libraries for now, so if that is easier to integrate let me know.
A few of the specific problems I’m facing:
- No views found. It appears that Vaadin is being detected at partially started but not finding my views. Presumably this is due to the classpath? I have the vaadin views outside of the main package but have added them to the Spring classpath scanning. Spring is clearly scanning that path, Vaadin is not finding them. Or perhaps finds them but something is wrong? Notice these views work fine in the tutorial app with a dummy backend.
- Thinking I was missing something I tried adding the @Theme(value = “flowcrmtutorial”) annotation from the Tutorial. This caused errors and the application did not start. Probably there is some resource I needed here as well?