http4k Hot Reload automatically restart your server after code changes, saving you time during development
See the docsThis tool automatically restarts the server when it detects a code change, resulting in fewer steps in your development workflow.
All that’s needed to support hot reloading is a class that provides the main application HttpHandler
, and a dedicated main()
function.
Hot reload works with all of the servers http4k can run on, no matter if you’re serving HTTP, WebSockets, or SSE protocol.
Use the Gradle integration (including multi-project support) or extend it to leverage your existing building tools.
Step 1 - Create the factory class
Step 2 - Jus run it with the HotReloadServer