DolphaGo / TIL

TIL & issues
0 stars 1 forks source link

[Swagger] SpringBoot 2.6.x 이상에서 Swagger3.0 연동시 생기는 이슈 #102

Open DolphaGo opened 2 years ago

DolphaGo commented 2 years ago
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null

이슈 원인

spring boot 2.6.0부터 요청 경로를 ControllerHandler에 매칭시키기 위한 전략의 기본값이 ant_path_matcher 전략 -> path_pattern_parser 전략으로 변경되었기 때문이다.

ricardosaracino commented 5 months ago

I found this https://www.cnblogs.com/didispace/p/16320202.html