类 TilesConfigurer

  • 所有已实现的接口:
    Aware, DisposableBean, InitializingBean, ServletContextAware

    @Deprecated
    public class TilesConfigurer
    extends Object
    implements ServletContextAware, InitializingBean, DisposableBean
    已过时。
    as of Spring 4.2, in favor of Tiles 3
    Helper class to configure Tiles 2.x for the Spring Framework. See https://tiles.apache.org for more information about Tiles, which basically is a templating mechanism for web applications using JSPs and other template engines. Note: Spring 4.0 requires Tiles 2.2.2. Tiles' EL support will be activated by default when the Tiles EL module is present in the classpath.

    The TilesConfigurer simply configures a TilesContainer using a set of files containing definitions, to be accessed by TilesView instances. This is a Spring-based alternative (for usage in Spring configuration) to the Tiles-provided ServletContextListener (e.g. CompleteAutoloadTilesListener for usage in web.xml.

    TilesViews can be managed by any ViewResolver. For simple convention-based view resolution, consider using TilesViewResolver.

    A typical TilesConfigurer bean definition looks as follows:

     <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
       <property name="definitions">
         <list>
           <value>/WEB-INF/defs/general.xml</value>
           <value>/WEB-INF/defs/widgets.xml</value>
           <value>/WEB-INF/defs/administrator.xml</value>
           <value>/WEB-INF/defs/customer.xml</value>
           <value>/WEB-INF/defs/templates.xml</value>
         </list>
       </property>
     </bean>
     
    The values in the list are the actual Tiles XML files containing the definitions. If the list is not specified, the default is "/WEB-INF/tiles.xml".

    NOTE: Tiles 2 support is deprecated in favor of Tiles 3 and will be removed as of Spring Framework 5.0..

    从以下版本开始:
    2.5
    作者:
    Juergen Hoeller
    另请参阅:
    TilesView, TilesViewResolver