add spring security and token management
This commit is contained in:
@@ -5,6 +5,7 @@ import org.apache.velocity.Template;
|
||||
import org.apache.velocity.VelocityContext;
|
||||
import org.apache.velocity.app.Velocity;
|
||||
import org.apache.velocity.app.VelocityEngine;
|
||||
import org.apache.velocity.context.Context;
|
||||
import org.apache.velocity.runtime.resource.loader.StringResourceLoader;
|
||||
import org.apache.velocity.runtime.resource.util.StringResourceRepository;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -88,7 +89,7 @@ public class ErrorHelper {
|
||||
.getApplicationAttribute(StringResourceLoader.REPOSITORY_NAME_DEFAULT);
|
||||
resourceRepository.putStringResource(RAW_TEMPLATE, rawNotificationTemplate);
|
||||
|
||||
return new VelocityContext(parameters);
|
||||
return new VelocityContext((Context) parameters);
|
||||
}
|
||||
|
||||
private void addVelocityProperties() {
|
||||
|
Reference in New Issue
Block a user