Eclipse STS无法选择最新的弹簧版本 [英] Eclipse STS can't select latest spring version
问题描述
当选择File> new Spring Project> Simple Spring Maven时,我无法在选择弹簧版本下选择最新的Spring版本。
When choosing File > new Spring Project > Simple Spring Maven I cannot select the latest Spring version under 'select spring version:'.
选项是3.0.7,3.1.4,3.2.3或默认值。
Options are 3.0.7, 3.1.4, 3.2.3 or default.
为什么我无法选择4.2.2.RELEASE版本?我应该在每次启动一个新项目时在pom.xml中手动执行?
Why am I not able to choose 4.2.2.RELEASE version ? Should I do it manually in the pom.xml everytime I start a new project ?
谢谢!
推荐答案
有两个向导可以使用新春项目和新春启动项目。也许名字有点混乱。所以让我解释一下。
There are two wizards you can use 'New Spring Project' and 'New Spring Starter Project'. Maybe the names are a little confusing. So let me explain.
新春项目是旧,遗产向导。
The 'New Spring Project' is the 'old', 'legacy' wizard.
New Spring Starter一个是更现代的向导。
The 'New Spring Starter' one is the more modern wizard.
当我们创建新的向导时,我们应该删除旧的向导。但是,一些使用STS的人真的很保守,并且想继续使用它,向导仍然存在。作为一个旧的向导,它使用旧的模板项目,它使用旧的弹簧框架版本。
The old wizard really should have been removed when we created the new one. But as some folks using STS are really conservative and want to keep using it the wizard is still there. As its an old wizard, it uses old-style template projects which use old spring framework versions.
如果你想要更现代的东西,请尝试其他向导,它创建一个空项目使用Spring Boot和spring框架的最新版本。
If you want something more modern, try the other wizard it creates an empty project using Spring Boot and up-to-date versions of spring framework.
这篇关于Eclipse STS无法选择最新的弹簧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!