将Apache Tiles定义迁移到JavaConfig

时间:2014-02-11 16:57:13

标签: spring apache-tiles spring-java-config

我目前正将我的Spring项目迁移到JavaConfig。现在仍有tiles.xml包含切片定义。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

    <!-- Layouts -->
    <definition name = "template.base" template = "/WEB-INF/views/layout/template.jsp" />

    <!-- Example Controller -->
    <definition name = "test" extends = "template.base" />

</tiles-definitions>

是否可以将该XML配置文件转换为新的JavaConfig标准?

0 个答案:

没有答案