In the process of using freemarker, the following errors are often seen:
The template code is as follows:
Root cause: sex is not set, so an error is reported
Solution:
Add an exclamation mark after undeclared variables
You can also set the default value, add the default value after the exclamation mark