NULL value exception occurs when freemarker renders the page globally in the springboot project

When using freemarker in the springboot project recently, when a certain null value is taken in the page for judgment, an exception will be reported, and all the exception information will be displayed on the page. Through a configuration, it can be solved globally
by adding in the freemarker property configuration of application.properties:

spring.freemarker.settings.classic_compatible=true

Read More: