How to change embedded tomcat's version in existing spring boot app?

前端 未结 2 681
悲哀的现实
悲哀的现实 2020-12-18 02:00

I\'m currently running spring-boot version 1.4.0.RELEASE application with embedded tomcat. Included Tomcat\'s version is 8.5.4

There\'s a n

2条回答
  •  天涯浪人
    2020-12-18 02:28

    Late to the party I know, was looking for a similar issue, thought I'd share a more literal hint.

    You need to override the properties set in spring's parent pom (which is mandatory for this) to suit your case (and compatibility too):

    
    ......
        9.0.5
    ......
    
    

    This is according to [Introduction to Spring][1]. Their example shows many other dependencies cherry-picked. [1]: http://www.springboottutorial.com/spring-boot-starter-parent

提交回复
热议问题