我有我的春天項目設置爲這樣的視圖處理程序磚:春+瓷磚如何使用EL在tiles.xml
<bean class="org.springframework.web.servlet.view.tiles2.TilesViewResolver" />
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/views/**/tiles.xml</value>
</list>
</property>
</bean>
我想使用EL裏面訪問會話範圍tiles.xml,用於解析jsp文件名。這應該是可能的,如果我使用CompleteAutoloadTilesContainerFactory,如下所述:
http://tiles.apache.org/framework/tutorial/advanced/el-support.html
如何設置我的春天塊配置,讓這一點。我嘗試過使用EL,因爲它目前已經設置好了,但EL沒有被解析。
是的,我注意到,設置並嘗試設置bean以將其設置爲true。我不明白如何處理註釋中所說的內容: 注意:指定完全自動載入模式會有效地禁用此配置器上的所有其他bean屬性。整個初始化過程將留給CompleteAutoloadTilesInitializer。 無論如何,我仍然運行該項目,並不斷收到此異常: java.lang.ClassNotFoundException:org.apache.tiles.servlet.wildcard.WildcardServletTilesApplicationContext – nfvindaloo