question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Spring WebMvc.fn

See original GitHub issue

You have a note on https://springdoc.org/ saying:

Spring-weblfux with Functional Endpoints, will be available in the future release

However, I haven’t seen any mention on supporting WebMvc.fn (classic servlets): https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#webmvc-fn

Do you already have an idea on how this could be supported? Given that this approach doesn’t have a convenient place to put any annotations, I wonder how feasible it actually is.

Since the Functional Endpoints for Servlets are now pretty much stable, I am guessing that more people are going to ask for this.

As a side-note, here are two examples on how other libraries are solving this problem:

  • HTTP4K is using a meta dsl
  • Jooby is using a combination of build-time byte code analysis + annotation on handler functions

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
poutsmacommented, Apr 14, 2020

I don’t know much about OpenAPI, but any kind of router functions inspection should indeed use the visitor mechanism.

0reactions
nlochschmidtcommented, Jun 3, 2020

Great! Thank you so much 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Tips: WebMvc.fn - the functional DSL for Spring MVC
Hi Spring fans! Welcome to another installment of Spring Tips in which I look at the just-landed-on-master WebMvc.fn programming model in ...
Read more >
Functional Controllers in Spring MVC - Baeldung
We'll be using Spring Boot to demonstrate the new APIs. This framework supports the familiar annotation-based approach of defining controllers.
Read more >
Introduction to WebMvc.fn | SpringOne | September 2–3, 2020
In version 5.2, the Spring Framework introduced WebMvc.fn, a functional way to define Servlet endpoints. In this talk, we'll introduce WebMvc.fn, ...
Read more >
Spring Tips: WebMvc.fn - the functional DSL for Spring MVC
Hi Spring fans! In this installment of Spring Tips we look at the new WebMvc. fn programming model now available for Spring MVC...
Read more >
Introduction to WebMvc.fn - YouTube
"In version 5.2, the Spring Framework introduced WebMvc. fn, a functional way to define Servlet endpoints. In this talk, we'll introduce ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found