java.lang.NoSuchMethodError: io.swagger.models.properties.BaseIntegerProperty.getMinimum()Ljava/lang

java.lang.NoSuchMethodError: io.swagger.models.properties.BaseIntegerProperty.getMinimum()Ljava/lang_第1张图片

这2个jar的版本太低导致,我的  swagger2markup版本是1.3.3,可以使用!

pox.xml如下:

 



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.1.RELEASE
         
    
    com.example.springbootsimple
    springbootsimple
    0.0.1-SNAPSHOT
    springbootsimple
    Demo project for Spring Boot

    
        1.8
    

    
        
            org.springframework.boot
            spring-boot-starter-web
        

        
            org.springframework.boot
            spring-boot-starter-test
            test
        

        
            org.springframework.boot
            spring-boot-configuration-processor
            true
        

        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        


        
            io.springfox
            springfox-swagger2
            2.6.1
        
        
            io.springfox
            springfox-swagger-ui
            2.6.1
        


        
            org.springframework.restdocs
            spring-restdocs-mockmvc
        
        
            com.fasterxml.jackson.module
            jackson-module-jsonSchema
            test
        

        
            io.github.swagger2markup
            swagger2markup
            1.3.3
        

        
            io.springfox
            springfox-staticdocs
            2.6.1
        

       
            junit
            junit
        

        
        
            io.swagger
            swagger-core
            1.5.21
        

        
        
            io.swagger
            swagger-models
            1.5.21
        




    

    
        
            
                true
                always
            
            jcenter-releases
            jcenter
            http://jcenter.bintray.com
        
    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            


        
            org.asciidoctor
            asciidoctor-maven-plugin
            1.5.7
            
                ./docs/asciidoc/generated
                ./docs/asciidoc/html
                true
                book
                html
                coderay
                
                    
                    left
                    
                    3
                    
                    true
                
            
        

        
    


你可能感兴趣的:(java.lang.NoSuchMethodError: io.swagger.models.properties.BaseIntegerProperty.getMinimum()Ljava/lang)