问题:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template “err/getAjaxerror”, template might not exist or might not be accessible by any of the configured Template Resolvers
解决方法:
在全局捕获异常类中使用@RestControllerAdvice
,并且使用ajax发送交易处理时 返回json数据前添加
response.setContentType("text/html;charset=utf-8");
response.setCharacterEncoding("utf-8");