@ Singleton public AbstractConfigurableTemplateResolver templateResolver ( ViewsConfiguration viewsConfiguration , ThymeleafViewsRendererConfiguration rendererConfiguration ) { ClassLoaderTemplateResolver templateResolver = new ClassLoaderTemplateResolver ( ) ; templateResolver . setPrefix ( viewsConfiguration . getFolder ( ) ) ; templateResolver . setCharacterEncoding ( rendererConfiguration . getCharacterEncoding ( ) ) ; templateResolver . setTemplateMode ( rendererConfiguration . getTemplateMode ( ) ) ; templateResolver . setSuffix ( rendererConfiguration . getSuffix ( ) ) ; templateResolver . setForceSuffix ( rendererConfiguration . getForceSuffix ( ) ) ; templateResolver . setForceTemplateMode ( rendererConfiguration . getForceTemplateMode ( ) ) ; templateResolver . setCacheTTLMs ( rendererConfiguration . getCacheTTLMs ( ) ) ; templateResolver . setCheckExistence ( rendererConfiguration . getCheckExistence ( ) ) ; templateResolver . setCacheable ( rendererConfiguration . getCacheable ( ) ) ; return templateResolver ; }
Constructs the template resolver bean .