通过RuntimeException自定义异常类无法传到前端页面 在配置文件中添加以下代码 server.error.include-exception=true #Always add error attribute server.error.include-message=always