Error Page - how to print stack trace in JSP

后端 未结 2 1808
梦谈多话
梦谈多话 2021-01-04 23:16

I\'ve created exception handling in my Spring application using spring SimpleMappingExceptionResolver. Everything works fine. Now I need to somehow print the caught exceptio

2条回答
  •  耶瑟儿~
    2021-01-04 23:52

    Had to do this (dev/local environment only) in pages in the past and just want to display it in a textarea or a preformatted block. The output from skaffman prints out each strack trace element but not the message and exception class.

    If you want it pre-formatted as per a printStackTrace() consider using Spring EL and commons-lang3.

    
    

提交回复
热议问题