-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Hello,
I'm currently interested in integrating htmx-spring-boot; it's a set of helpers to work with htmx
and avoid some boilerplate, the library provides a custom class that extends RequestMappingHandlerMapping
for intercepting htmx
specific endpoints.
If I add the dependencies and just run my example repo I would get a ClassCastException
, I've tried adding the property plugin.pluginFirstClasses=HtmxRequestMappingHandlerMapping
and plugin.pluginFirstClasses=io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxRequestMappingHandlerMapping
to the config without any luck, maybe I didn't understand the right way to use this?
So my question is, if I were to integrate this library permanently without relaying in the config for it, how should proceed? Should I create a custom WebMvcRegistrations
bean to override the one in SbpWebMvcPatchAutoConfiguration
and provide an extended PluginRequestMappingHandlerMapping
class that also to included the htmx
handling? Or what would be a right way of handling this?
Salutations and thanks.