类 AbstractUrlBasedView

    • 方法详细资料

      • setUrl

        public void setUrl​(@Nullable
                           String url)
        Set the URL of the resource that this view wraps. The URL must be appropriate for the concrete View implementation.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        从接口复制的说明: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean
        抛出:
        Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason
      • checkResourceExists

        public abstract boolean checkResourceExists​(Locale locale)
                                             throws Exception
        Check whether the resource for the configured URL actually exists.
        参数:
        locale - the desired Locale that we're looking for
        返回:
        false if the resource exists false if we know that it does not exist
        抛出:
        Exception - if the resource exists but is invalid (e.g. could not be parsed)