-
Notifications
You must be signed in to change notification settings - Fork 33
Circular View Path Exception #4
Description
Hi Peter, thanks for the Spring Security Filtering Demo. It's exactly what I'm trying to include in a Vaadin spring boot project of my own, but I'm having trouble replicating your example.
I'm getting a "Circular View Path" exception.
I've included the following dependencies (plus all the other relevant stuff):
compile 'com.vaadin:vaadin-spring-boot-starter:1.2.0'
compile 'org.springframework.boot:spring-boot-starter-security:1.3.3.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-velocity:1.3.3.RELEASE'
I've also tried using newer versions of the dependencies above, but no luck.
compile 'com.vaadin:vaadin-spring-boot-starter:3.0.0'
compile 'org.springframework.boot:spring-boot-starter-security:1.5.10.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-velocity:1.4.7.RELEASE'
One thing I notice in the demo's startup logs is that Velocity starts up, a SpringResourceLoader becomes available for Velocity and the /templates/ folder is assigned as a resource path. See below:
o.s.w.s.v.velocity.VelocityConfigurer : ClasspathResourceLoader with name 'springMacro' added to configured VelocityEngine
o.s.ui.velocity.SpringResourceLoader : SpringResourceLoader for Velocity: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplication
Context@1d15d980: startup date [Thu Mar 15 14:22:56 GMT 2018]; root of context hierarchy] and resource loader paths [classpath:/templates/]
However, I never see these Velocity startup logs in my own application.
So, I'm guessing Velocity isn't configured correctly in my app, but I don't see where it's configured in the demo.
Can you help? Thanks!