I'm trying to realise the point of the xmlns definitions of the following xml-file:
<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.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
</beans>
I didn't get what schemaLocation specified here. Why, for instance, should I add both xmlns:mvc = "http://www.springframework.org/schema/mvc"
and http://www.springframework.org/schema/mvc
to the schemaLocation
attribute to use mvc:xxx_something_xxx
in my spring config-file?
I just want to understand what I do every time when I start to create spring-mvc apps, not just copy-paste it from google without understanding.