Skip to content

Commit 695824f

Browse files
authored
docs(readme): document allowed-packages
1 parent 5263510 commit 695824f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,14 @@ For a more comprehensive example, see com.flowingcode.vaadin.addons.carousel.Dem
114114
Button first = new Button("|<");
115115
first.addClickListener(e->cf.movePos(0));
116116

117+
## Special configuration when using Spring
118+
119+
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.
120+
121+
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:
122+
123+
```
124+
vaadin.allowed-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode
125+
```
126+
127+
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)