Configuration xsi schemaLocation
Bonjours,
Quelqu'un peut-il m'expliquer pourquoi utiliser une double déclaration de l'attribut:schemaLocation .
Par exemple,avec spring3,la configuration est de l la forme:
Code:
1 2 3
|
<beans xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
Pourquoi pas utiliser simplement:
Code:
1 2 3
|
<beans xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans/spring-beans.xsd"> |
ou encore plus simple;:
Code:
<beans xmlns="http://www.springframework.org/schema/beans/spring-beans.xsd">
si je fais comme ca:j'obtient l'erreur:
Code:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.