关于springboot2.6版本以上和swagger冲突问题

关于springboot中使用swagger报错context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper';nested exception is java.lang.NullPointerException

这是由于springboot和swagger版本冲突问题引起的

解决:1.可以调低版本

2.在yml中加入配置就ok

mvc:
  pathmatch:
    matching-strategy: ant_path_matcher

你可能感兴趣的:(java,spring)