You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/07/09 02:36:47 UTC

[GitHub] [servicecomb-java-chassis] mrgao0612 opened a new issue #1875: Springboot1.5.12+servicecomb1.0.0集成swagger接口文档,使用yml配置文件报错,使用properties配置文件正常,请问为什么?

mrgao0612 opened a new issue #1875:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1875


   当我使用application.yml做配置文件时启动项目就会抛出以下异常信息:
   
   `org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/D:/repository/maven/io/springfox/springfox-spring-web/2.7.0/springfox-spring-web-2.7.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/D:/repository/maven/io/springfox/springfox-spring-web/2.7.0/springfox-spring-web-2.7.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.util.List<org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}`
   
   当我使用application.properties做配置文件时项目就可以正常启动。
   请问这个问题什么原因导致的?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] mrgao0612 closed issue #1875: Springboot1.5.12+servicecomb1.0.0集成swagger接口文档,使用yml配置文件报错,使用properties配置文件正常,请问为什么?

Posted by GitBox <gi...@apache.org>.
mrgao0612 closed issue #1875:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1875


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] mrgao0612 commented on issue #1875: Springboot1.5.12+servicecomb1.0.0集成swagger接口文档,使用yml配置文件报错,使用properties配置文件正常,请问为什么?

Posted by GitBox <gi...@apache.org>.
mrgao0612 commented on issue #1875:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1875#issuecomment-655877361


   servicecomb已经集成swagger了


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org