1
你知道我們可以在Spring mvc xml文件中使用屬性文件數據。 例如:關於spring mvc註解使用屬性文件
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>xxxx.properties</value>
</property>
</bean>
...
<mvc:mapping path="/${path}/*" />
...
但如何,我可以在註釋 這樣使用它:
@Controller
@RequestMapping("/${url}")
現在是錯誤的。
告訴我怎麼辦 非常感謝。
非常感謝。 – user1533761 2012-07-18 08:53:16