We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bean instantiation fails when in try to set the expressionhandler to GraalJsExpressionHandler as shown in the JavaConfig code example.
@configuration public class PugConfig {
@Bean public SpringTemplateLoader templateLoader() { SpringTemplateLoader templateLoader = new SpringTemplateLoader(); templateLoader.setTemplateLoaderPath("classpath:/templates"); templateLoader.setEncoding("UTF-8"); templateLoader.setSuffix(".pug"); return templateLoader; } @Bean public PugConfiguration pugConfiguration() { PugConfiguration configuration = new PugConfiguration(); configuration.setCaching(false); configuration.setTemplateLoader(templateLoader()); //To use the new GraalJsExpressionHandler add this: configuration.setExpressionHandler(new GraalJsExpressionHandler()); return configuration; }
}
Note : Commenting the line which sets expression handler works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bean instantiation fails when in try to set the expressionhandler to GraalJsExpressionHandler as shown in the JavaConfig code example.
@configuration
public class PugConfig {
}
Note : Commenting the line which sets expression handler works.
The text was updated successfully, but these errors were encountered: