Skip to content

Commit

Permalink
docs: add special configuration when using Spring
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Sep 14, 2023
1 parent 7978950 commit c97009e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit c97009e

Please sign in to comment.