Richard
Richard

Reputation: 6126

Spring RequestMappingHandlerMapping Startup Slow

I am using this Github tool to analyze my Spring Boot application start up time. Here's a screenshot of the analysis results:

enter image description here

I am not sure how accurate the results are because the tool says the start up time was 41 seconds but my IDE console says it took 98 seconds.

But regardless of the accuracy the largest block is org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping

Why is this spring component so slow and how I can I best optimize the startup time.

Upvotes: 0

Views: 541

Answers (1)

user4477122
user4477122

Reputation:

please share more info what you are doing in initialization phase...but RequestMappingHandlerMapping Creates RequestMappingInfo instances from type and method-level @RequestMapping annotations in @Controller classes.

Upvotes: 1

Related Questions