我需要将spring-boot-starter-parent从1.4.2升级到最新版本:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
但这将不再起作用:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-velocity</artifactId>
</dependency>
我发现在1.4.7之后,速度包不再包含在父级中。怎么处理呢?升级依赖关系后,我是否可以暂停“速度”依赖关系?
答案 0 :(得分:1)
Spring Boot 2.0依赖于Spring Framework 5.0。其中放弃了对Velocity的支持。因此,在Spring Boot 2中,不再支持Velocity。
Dropped support: Portlet, Velocity, JasperReports, XMLBeans, JDO, Guava.
如果您确实需要Velocity,建议:如果需要,请继续使用Spring Framework 4.3.x。
请阅读What's new Spring Framework 5.x
已删除的软件包,类和方法
Package beans.factory.access (BeanFactoryLocator mechanism). Package jdbc.support.nativejdbc (NativeJdbcExtractor mechanism). Package mock.staticmock removed from spring-aspects module. No support for AnnotationDrivenStaticEntityMockingControl anymore. Packages web.view.tiles2 and orm.hibernate3/hibernate4 dropped. Minimum requirement: Tiles 3 and Hibernate 5 now. Dropped support: Portlet, Velocity, JasperReports, XMLBeans, JDO, Guava. Recommendation: Stay on Spring Framework 4.3.x for those if needed. Many deprecated classes and methods removed across the codebase. A few compromises made for commonly used methods in the ecosystem.