當我在spring bean配置文件中添加一個名稱空間時,我能夠大幅減少xml配置嗎?Spring中的xml配置
例如:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sws="http://www.springframework.org/schema/web-services"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd">
<sws:annotation-driven />
</beans>
這個片段讓我無法定義PayloadRootAnnotationMethodEndpointMapping明確