我正在使用 Seam 2.1,但是当我收到 JDBC 异常抛出代理调用时,框架会吞下异常而不记录它。有什么办法可以显示异常吗?
谢谢
最佳答案
你见过this吗? ?
JSF is surprisingly limited when it comes to exception handling. As a partial workaround for this problem, Seam lets you define how a particular class of exception is to be treated by annotating the exception class, or declaring the exception class in an XML file. This facility is meant to be combined with the EJB 3.0-standard @ApplicationException annotation which specifies whether the exception should cause a transaction rollback.
关于java - 接缝吞没 JDBC 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7499746/