From fcfb4bc73141e19b81fad76fc48f4a516d36a5ec Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:41:37 -0300 Subject: [PATCH] docs(readme): add special configuration when using Spring --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index aa93ea2..f8c4664 100644 --- a/README.md +++ b/README.md @@ -88,3 +88,13 @@ Then, follow these steps for creating a contribution: This add-on is distributed under Apache License 2.0. For license terms, see LICENSE.txt. TwinColGrid Add-on is written by Flowing Code S.A. + +## 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 allowed in order to display correctly. + +To do so, just add ```com.flowingcode``` to the ```vaadin.allowed-packages``` property in ```src/main/resources/application.properties```, like: + +```vaadin.allowed-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode``` + +More information on Spring scanning configuration [here](https://vaadin.com/docs/latest/integrations/spring/configuration/#configure-the-scanning-of-packages). \ No newline at end of file