<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd">查了好多資料沒有得到我個人覺的比較滿意的解答我的理解:xml命名空間類似寫java導入的jar包eg:<context:component-scan base-package=""></context:component-scan>上面context標簽 意思是用的下面這個url里面對應的xds文件.
xmlns:context="http://www.springframework.org/schema/context"
這樣理解對嗎,還請指教問題:
(xds是什么?類似java中jar包?jar包用java寫的,xds用xml寫的?)
添加回答
舉報
0/150
提交
取消