开启SpringEL
Configure configure = Configure.builder() .useSpringEL(true).build();
不能用中文的定义标签名称,不然会报错,但是不开启是可以的。。。
比如:
{{单位名称}}
会报错
Cannot render docx template, please check the Exception
后面会提示: Cannot handle (25919) '单'
但是去掉了
开启SpringEL
Configure configure = Configure.builder() .useSpringEL(true).build();
不能用中文的定义标签名称,不然会报错,但是不开启是可以的。。。
比如:
{{单位名称}}
会报错
Cannot render docx template, please check the Exception
后面会提示: Cannot handle (25919) '单'
但是去掉了