woraphol.j woraphol.j - 3 months ago 116
Java Question

VelocityEngineUtils has been removed in Spring 3.2 so what else to use?

Today I have upgraded my entire Spring web application from using Spring

3.1.1
to Spring
3.2
.

Most part of my existing app does not break except that in Spring
3.2
, the

org.springframework.ui.velocity.VelocityEngineUtils


class seems to be removed completely from the spring-context-3.2.0.RELEASE.jar.

I found the migration guide as in this url.

It stated that
org.springframework.ui.velocity.VelocityEngineUtils
class has just been deprecated, but in fact it has been removed completely.

Maybe I'm just mistaken, I would like to know if the VelocityEngineUtils class still exist in somewhere or if not, what is the alternative class that I can use.

EDIT: It seems the entire velocity package has been removed from Spring
3.2
so now even
org.springframework.ui.velocity.VelocityEngineFactoryBean
does not exist. Are Spring walking away from Velocity?

Answer

I don't think VelocityEngineUtils was in the spring-context jar (at least not since Spring last 3.1.x releases, according to GitHub).

Anyway, you can find it in spring-context-support-3.2.0.RELEASE.jar