Skip to content

Commit 7895361

Browse files
javier-godoypaodb
authored andcommitted
docs(readme): document allowed-packages
1 parent 0302faa commit 7895361

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,15 @@ For a more comprehensive example, see `com.flowingcode.vaadin.addons.chipfield.D
102102
Binder<Planet> binder = new Binder<>();
103103
binder.bind(chf5,Planet::getConfiguration,Planet::setConfiguration);
104104
binder.setBean(p);
105+
106+
## Special configuration when using Spring
107+
108+
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.
109+
110+
To do so, just add `com.flowingcode` to the `vaadin.allowed-packages` property (Vaadin 14-23: `vaadin.whitelisted-packages`) in `src/main/resources/application.properties`, like:
111+
112+
```
113+
vaadin.allowed-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode
114+
```
115+
116+
More information on Spring scanning configuration [here](https://vaadin.com/docs/latest/integrations/spring/configuration/#configure-the-scanning-of-packages).

0 commit comments

Comments
 (0)