Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove thymeleaf, improve webflux support #111

Merged
merged 5 commits into from
Jun 27, 2024
Merged

Conversation

geirsagberg
Copy link
Collaborator

@geirsagberg geirsagberg commented Jun 26, 2024

  • Upgrade dependencies
  • Replace thymeleaf for config with a separate config endpoint and top level await

This reduces the dependency on thymeleaf and allows serving the SPA fully static, for better compatibility with webflux projects.

  • Remove dependency on Web MVC Starter, to increase webflux compatibility
  • Add example of webflux app

@geirsagberg geirsagberg force-pushed the remove-thymeleaf branch 3 times, most recently from bb70208 to 74ed594 Compare June 26, 2024 11:16
When targeting es2022 we can use top level awaits to load config from a separate endpoint.
This removes the dependency on thymeleaf for tepmlating, and we can serve the SPA fully static.
By removing the dependency on spring-boot-starter-web, we make it easier to utilize in a webflux application.
The added webflux example shows how to add a router function to serve the static assets.
Provides better IDE experience when editing settings.
@geirsagberg geirsagberg changed the title Remove thymeleaf Remove thymeleaf, improve webflux support Jun 26, 2024
@geirsagberg geirsagberg mentioned this pull request Jun 26, 2024
Copy link
Contributor

@sveinbma sveinbma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 💪

@geirsagberg geirsagberg merged commit 0baf4f1 into main Jun 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants