Spring Boot - can't start with embedded tomcat error

后端 未结 4 1293
执笔经年
执笔经年 2021-02-20 04:18

pom.xml

    
        org.springframework.boot
        spring-boot-starter-parent         


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 04:36

    I had the same problem, it seems that:

    
        com.fasterxml.jackson.core
        jackson-databind
        2.9.0
    
    

    had dependency to jackson-annotations in version 2.8.0 which crashed somehow with my other jackson dependencies.

    after modifying the dependency as follows:

    
        com.fasterxml.jackson.core
        jackson-databind
        
            
                com.fasterxml.jackson.core
                jackson-annotations
            
        
    
    

    and adding explicit dependency on:

    
        com.fasterxml.jackson.core
        jackson-annotations
        2.9.0
    
    

    problem was solved for me :)

提交回复
热议问题