Skip to content

Commit cf509c7

Browse files
javier-godoypaodb
authored andcommitted
docs(readme): add special configuration when using Spring
1 parent ef9a768 commit cf509c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,13 @@ app.setToolbarIconButtons(
9393
new ToolbarIconButton("Close", "close", ()->Notification.show("Close action"))
9494
);
9595
```
96+
97+
## Special configuration when using Spring
98+
99+
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.
100+
101+
To do so, just add ```com.flowingcode``` to the ```vaadin.allowed-packages``` property in ```src/main/resources/application.properties```, like:
102+
103+
```vaadin.allowed-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode```
104+
105+
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)