Skip to content

Commit

Permalink
Merge pull request #207 from justin-tay/async_gh-pages
Browse files Browse the repository at this point in the history
Updates for async api auto config
  • Loading branch information
aklish authored Sep 22, 2024
2 parents b77d87f + e350401 commit 63e3513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _data/snippets/v7/async-api-enable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Spring: |+2
<br/>
Configure in `application.yaml`.
If you rely on Spring to autodiscover the entities which are placed in the same package/sub-package as the application class with @SpringBootApplication annotation, you will have to add the `@EntityScan` annotation to that application class for those entities to be discovered after async is enabled.
Elide automatically contributes the JPA models for Spring using `@AutoConfigurationPackage` which will be used by Spring automatically if `@EntityScan` is not specified in your application to override auto configuration. However if `@EntityScan` is being used to specify which JPA models to use then the JPA models for the Async API needs to also be explicitly specified for instance `@EntityScan(basePackageClasses = { App.class, AsyncQuery.class })`.
```yaml
elide:
Expand Down

0 comments on commit 63e3513

Please sign in to comment.