org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect Java Examples
The following examples show how to use
org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WallRideThymeleafConfiguration.java From wallride with Apache License 2.0 | 6 votes |
@Bean public SpringTemplateEngine templateEngine(WallRideThymeleafDialect wallRideThymeleafDialect) { SpringTemplateEngine engine = new SpringTemplateEngine(); // engine.setTemplateResolver(templateResolver()); Set<ITemplateResolver> templateResolvers = new LinkedHashSet<>(); templateResolvers.add(homePathTemplateResolver()); templateResolvers.add(classPathTemplateResolver()); engine.setTemplateResolvers(templateResolvers); Set<IDialect> dialects = new HashSet<>(); dialects.add(new SpringSecurityDialect()); dialects.add(new Java8TimeDialect()); dialects.add(wallRideThymeleafDialect); engine.setAdditionalDialects(dialects); return engine; }
Example #2
Source File: WebConfig.java From Spring5Tutorial with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public SpringTemplateEngine templateEngine(ITemplateResolver templateResolver) { // 建立與設定模版引擎 SpringTemplateEngine engine = new SpringTemplateEngine(); engine.setEnableSpringELCompiler(true); engine.setTemplateResolver(templateResolver); engine.addDialect(new SpringSecurityDialect()); return engine; }
Example #3
Source File: WebAdminConfiguration.java From wallride with Apache License 2.0 | 5 votes |
@Bean public SpringTemplateEngine templateEngine() { SpringTemplateEngine engine = new SpringTemplateEngine(); Set<ITemplateResolver> resolvers = new HashSet<>(); resolvers.add(adminTemplateResolver()); engine.setTemplateResolvers(resolvers); Set<IDialect> dialects = new HashSet<>(); dialects.add(new SpringSecurityDialect()); dialects.add(new Java8TimeDialect()); dialects.add(wallRideThymeleafDialect); engine.setAdditionalDialects(dialects); return engine; }
Example #4
Source File: WebConfig.java From tutorials with MIT License | 5 votes |
@Bean public ISpringTemplateEngine templateEngine() { SpringTemplateEngine engine = new SpringTemplateEngine(); engine.setEnableSpringELCompiler(true); engine.setTemplateResolver(templateResolver()); engine.addDialect(new SpringSecurityDialect()); return engine; }