[Error] Swagger - Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

Oguยท2023๋…„ 5์›” 4์ผ
0

SpringBoot

๋ชฉ๋ก ๋ณด๊ธฐ
12/17
post-thumbnail
post-custom-banner

๐Ÿ˜ฅโ“โ•
Swagger๋ฅผ ์ ์šฉ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์˜์กด์„ฑ์„ ์ถ”๊ฐ€ํ•˜๊ณ  ConfigํŒŒ์ผ์„ ์ž‘์„ฑํ•˜๊ณ  ์„œ๋ฒ„๋ฅผ ์‹คํ–‰์‹œ์ผฐ๋Š”๋ฐ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

Spring boot 2.6๋ฒ„์ „ ์ดํ›„์— spring.mvc.pathmatch.matching-strategy ๊ฐ’์ด ant_apth_matcher์—์„œ path_pattern_parser๋กœ ๋ณ€๊ฒฝ๋˜๋ฉด์„œ ๋ช‡๋ช‡ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ  ์žˆ๋‹ค.
๋‹ค์Œ๊ณผ ๊ฐ™์ด ์„ค์ • ํŒŒ์ผ์— ์•„๋ž˜ ์„ค์ •์„ ์ถ”๊ฐ€ํ•œ๋‹ค.

application.properties`

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

application.yml

spring:

  mvc:

    pathmatch:

      matching-strategy: ant_path_matcher

์„œ๋ฒ„ ์žฌ๋ถ€ํŠธ ํ›„ ์ž˜ ์ ์šฉ๋œ ๋ชจ์Šต์ด๋‹ค

์ฐธ๊ณ 

profile
Hello! I am Ogu, a developer who loves learning and sharing! ๐Ÿค๐Ÿค <br> ใ“ใ‚“ใซใกใฏ๏ผๅญฆใถใ“ใจใจๅ…ฑๆœ‰ใ™ใ‚‹ใ“ใจใŒๅฅฝใใช้–‹็™บ่€…ใฎOguใงใ™๏ผ๐Ÿค
post-custom-banner

0๊ฐœ์˜ ๋Œ“๊ธ€