spring-projects / spring-projects/spring-boot

Use RouterFunction or plain Controller for BasicErrorController instead of @Controller

Open
#23,109 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme: aot type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

There are only a few endpoints and none of them is very complex. It would be nice to have an annotation (reflection) free implementation. Wouldn't make much difference to most Spring Boot apps in a regular JVM, but it has a bigger impact on native images (where @RequestMapping is expensive).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating BasicErrorController and mapping the few endpoints it currently exposes. Review the surrounding error-handling tests and native-image considerations, then verify that an annotation/reflection-free implementation preserves the existing endpoint behavior and works for native images.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.