From c97009ea81e54f3d7168169b9cac3290f8cded27 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:57:30 -0300 Subject: [PATCH] docs: add special configuration when using Spring --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7364752..20a1d68 100644 --- a/README.md +++ b/README.md @@ -96,3 +96,13 @@ public class LombokDemo extends Div { } } ``` + +## Special configuration when using Spring + +By default, Vaadin Flow only includes ```com/vaadin/flow/component``` to be always scanned for UI components and views. For this reason, the add-on might need to be whitelisted in order to display correctly. + +To do so, just add ```com.flowingcode``` to the ```vaadin.whitelisted-packages``` property in ```src/main/resources/application.properties```, like: + +```vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode``` + +More information on Spring whitelisted configuration [here](https://vaadin.com/docs/latest/integrations/spring/configuration/#configure-the-scanning-of-packages).