-
Notifications
You must be signed in to change notification settings - Fork 68
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
Integrating library that uses RequestMappingHandlerMapping #46
Comments
Unfortunately, both |
Hi @hank-cp , thanks for the reply and indeed, but thankfully, since the sbp and htmx override different parts of the I created a custom WDYT? |
Your solution looks feasible. Could you make a PR for it please? It's better that you could also provide webflux support. Thx in advance:) |
Sure thing, just a little short on time ATM so I it may take a while before I can submit the PR |
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 extendsRequestMappingHandlerMapping
for interceptinghtmx
specific endpoints.If I add the dependencies and just run my example repo I would get a
ClassCastException
, I've tried adding the propertyplugin.pluginFirstClasses=HtmxRequestMappingHandlerMapping
andplugin.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 inSbpWebMvcPatchAutoConfiguration
and provide an extendedPluginRequestMappingHandlerMapping
class that also to included thehtmx
handling? Or what would be a right way of handling this?Salutations and thanks.
The text was updated successfully, but these errors were encountered: