0
protected void init() {
        getApplicationSettings().setInternalErrorPage(BnafInternalErrorPage.class);
        getApplicationSettings().setPageExpiredErrorPage(BnafAccessDeniedErrorPage.class);
        getApplicationSettings().setAccessDeniedPage(BnafAccessDeniedErrorPage.class);
        getExceptionSettings().setInternalErrorPage(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

在上面的代码中,我在 IExceptionSettings 处遇到错误。

4

1 回答 1

1

IExceptionSettings在检票口 7 中删除

所以你可以替换下面的行。

getExceptionSettings().setInternalErrorPage(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

getExceptionSettings().setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

要了解更多详细信息,请查看此处 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410

于 2017-07-03T11:17:48.823 回答