Creating a Spring Boot Starter

Hi,

Is there a guide on how to create a Spring Boot starter from a Vaadin application?

Background is that I have an application that can serve as the base for other applications and would like to use the starter mechanism provided by Spring Boot to enable this.

I’ve had a look around but have not been able to find any examples.

Using maven and Vaadin 24.6.4.

Thanks

It probably depends on the amount and what type of code you wanna share / auto-configure. Depending on it’s either:

  • Vaadin does not care
  • You need to specify proper parent theming
  • EnableVaadin needs to check other packages
  • It needs to be packaged like a Vaadin add-on

To come back to your original question: there is no example for your exact use case without knowing more what you wanna do exactly.

I have made couple. Here is one “development time helper” I published recently:

I didn’t use @EnableVaadin, but dynamically registered views. With the current setup it would probably be enough (as the path is hardcoded). Had some ideas that I could make it drop the views to the main app navigation instead (which was proabably a bad idea)…

2 Likes

Thanks, this is the sort of thing I was looking for. My main uncertainty was around the autoconfig and you’ve given the pointers that I needed.