describe :
TemplateInputException is an exception type that indicates an error occurred while using a template. There may be several specific reasons, such as incorrect template format, missing necessary parameters, etc.
question :
However, the above-mentioned exception checking code did not find the reason, but the exception error occurred, prompting the server 500 (backend exception error) ?
My reason and solution:
Because I use hot deployment, the files copied in our IDEA may not be recognized and compiled. We need to clear the target file and recompile (when there is a copy operation, it is best to clear and recompile)
Inspection steps:
① Check the backend code of the server, whether the static template path of the frontend exists;
② The path exists, check whether the template exists after target compilation.