ModelAttributeParameterExpander required a bean of type EnumTypeDeterminer that could not be found.


APPLICATION FAILED TO START


Description:

Parameter 2 of constructor in springfox.documentation.spring.web.readers.parameter.ModelAttributeParameterExpander required a bean of type 'springfox.documentation.spi.schema.EnumTypeDeterminer' that could not be found.

Action:

Consider defining a bean of type 'springfox.documentation.spi.schema.EnumTypeDeterminer' in your configuration.

问题背景:
在SpringCloud Alibaba整合swagger2时,启动时报以上错误。

    
        io.springfox
        springfox-swagger-ui
        2.7.0
    
    
        io.springfox
        springfox-swagger2
        2.7.0
    

问题原因:
是因为swagger2版本太低导致的问题

解决方案:
版本改为:2.9.2

你可能感兴趣的:(ModelAttributeParameterExpander required a bean of type EnumTypeDeterminer that could not be found.)