宁波市城乡建设委员会网站,项目推广方式有哪些,做付费网站,网站开发建设文章目录问题一(org.apache.ibatis.session.Configuration)解决方法问题二(ERROR StatusLogger No log4j2)解决方法问题三(com.google.common.util.concurrent)解决方法问题四(start bean documentationPluginsBootstrapper)解决方法问题五(Unable to infer base url. )解决办法…
# org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
解决方法
# Spring Boot 版本和swagger版本不一致的情况导致的
Spring Boot版本 2.5.6
Swagger 版本 2.9.2或者Spring Boot版本 2.6.5
Swagger 版本 3.0.0
问题五(Unable to infer base url. )
# Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:
解决办法
# 需要开启swagger
@EnableSwagger2
问题六(no active profile set)
# spring boot profile配置和启动时no active profile set, falling back to default profiles: default的问题