java - Spring beans DTD and XMLNS -


when creating spring project have problem xlmns. xmlns? these actually?

<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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"     xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"     xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd" 

and can references these? (resource of xmlns:xsi , xsi:schemelocation.) there online manual these? can't seem find them.

note when said references meant proper urls them

updated

where can see xml namespaces spring beans, spring transactions, spring mvc , such? , schema locations?

there explanation here: what use of xsi:schemalocation?

here springs docs on xsd config: http://static.springsource.org/spring/docs/current/spring-framework-reference/html/xsd-config.html

note: spring recommend not include version number in xsd unless required, should have:

xsi:schemalocation="http://www.springframework.org/schema/beans                      http://www.springframework.org/schema/beans/spring-beans.xsd" 

and not:

xsi:schemalocation="http://www.springframework.org/schema/beans                      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" 

"xmlns" defines name space current element.

"xmlns:aop" defines name space elements within current element, have prefix of "aop:"


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -