How to set value for thymeleaf.threadLocalCleanup.enabled
Posted: Thu Apr 17, 2014 5:20 pm
Hi All,
When setting the environment as production for building and deployment, i am getting below error while starting the application.
Anyboday knows how to set value for the BroadleafRequestProcessor.thymeleafThreadLocalCleanupEnabled? It uses the annotation @Value("${thymeleaf.threadLocalCleanup.enabled}").
Error creating bean with name 'blRequestFilter': Injection of resource dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'blRequestProcessor': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: protected boolean org.broadleafcommerce.common.web.BroadleafRequestProcessor.thymeleafThreadLocalCleanupEnabled;
nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String'
to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value
[${thymeleaf.threadLocalCleanup.enabled}]
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)
Thanks in advance
When setting the environment as production for building and deployment, i am getting below error while starting the application.
Anyboday knows how to set value for the BroadleafRequestProcessor.thymeleafThreadLocalCleanupEnabled? It uses the annotation @Value("${thymeleaf.threadLocalCleanup.enabled}").
Error creating bean with name 'blRequestFilter': Injection of resource dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'blRequestProcessor': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: protected boolean org.broadleafcommerce.common.web.BroadleafRequestProcessor.thymeleafThreadLocalCleanupEnabled;
nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String'
to required type 'boolean'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value
[${thymeleaf.threadLocalCleanup.enabled}]
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)
Thanks in advance