0

I have an existing project which is in Spring boot 1.4.2 and now as per requirement I need to update it to Spring boot 2.0.6. I have Vector as part of functionality, but since it is deprecated in 2.x, I am unable to find genuine reference to use it in 2.0.6.

Could someone help us to figure out how to use :

dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-velocity</artifactId>
</dependency>

in

<spring-boot.version>2.0.6.RELEASE</spring-boot.version>

I found few reference on searching but none was genuinely solving.

Akhil K
  • 21
  • 1
  • 3

1 Answers1

0

There is no more support for velocity in Spring 5:

https://github.com/spring-projects/spring-framework/wiki/What%27s-New-in-Spring-Framework-5.x#removed-packages-classes-and-methods

Either stay with Spring 4 (Spring Boot 1.x) or integrate velocity yourself.

Simon Martinelli
  • 34,053
  • 5
  • 48
  • 82
  • So is there no workaround to use Velocity in Spring 5 ? I remember reading VelocityEngineUtils is only deprecated & we still can user velocity. So can I use `VelocityEngine.mergeTemplate()` instead of `VelocityEngineUtils.mergeTemplateIntoString()` and then convert it to string ? – Akhil K Jun 19 '19 at 14:16
  • For what purpose are you using VeloCity? – Simon Martinelli Jun 19 '19 at 14:19
  • Thanks for the response. Was able to figure out with below link : https://stackoverflow.com/questions/14314143/velocityengineutils-has-been-removed-in-spring-3-2-so-what-else-to-use – Akhil K Jun 20 '19 at 06:13