我有一个spring boot应用程序,我想始终使用最新的tomcat版本,或者更好地使用给定的主要和次要版本的最新修补的tomcat版本:
F的最新版本为8或最新版本为8.5。 (如8.5.32)
因此,如果我重新构建应用程序,我将获得最新的安全补丁。
我知道我可以在属性内手动输入一个具体版本。 但这很快就会过时,我不想一直都在手动调整。
答案 0 :(得分:1)
如果使用gradle,则可以使用以下配置进行操作:
compile('org.springframework.boot:spring-boot-starter-web') {
exclude module: "spring-boot-starter-tomcat"
}
compile 'org.apache.tomcat.embed:tomcat-embed-core:+'
compile 'org.apache.tomcat.embed:tomcat-embed-el:+'
compile 'org.apache.tomcat.embed:tomcat-embed-logging-juli:+'
compile 'org.apache.tomcat.embed:tomcat-embed-websocket:+'
如果要提供特定版本,请使用version+