5

I am upgrading the Spring version of an older application. When starting, I get

Caused by: java.lang.ClassNotFoundException: org.springframework.ui.velocity.VelocityEngineFactoryBean

Regarding findjar this class was part of spring-context in earlier version, but not in the latest version. Can anybody give me a hint, what happened with this class?

Can I use something else?

Update: I found a quick&dirty sulution, I copied VelocityEngineFactoryBean, VelocityEngineFactory and SpringResourceLoader from the earlier Spring version. As I am moving the whole application to Spring Boot in the foreseeable future, this is as workaround acceptable for me.

1 Answers1

6

Spring has marked Velocity package as deprecated in Spring 4.3 and removed it completely in Spring 5.x.

Alternate, here

Mohamed Anees A
  • 4,119
  • 1
  • 22
  • 35