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()}