Thymeleaf + Spring using your own tools

The first Provide ideas, inheritance SpringStandardDialect, rewrite getExpressionObjectFactory method, set the actual object expressionObjectFactory and can add their own dialect in TemplateEngine

The second syntax to access the application context using SpringEL of any bean: ${@myBean.doSomething()}

Guess you like

Origin www.cnblogs.com/XingXiaoMeng/p/11343876.html