springboot2.x以上自定义异常以及定制异常界面exception和message的值获取不到
解决方法,在properties文件里面加上这两句:
server.error.include-exception=true
server.error.include-message=always
参考文档:https://blog.youkuaiyun.com/weixin_42260782/article/details/108044934
解决方法,在properties文件里面加上这两句:
server.error.include-exception=true
server.error.include-message=always
参考文档:https://blog.youkuaiyun.com/weixin_42260782/article/details/108044934