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:
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:
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;:
<beans xmlns="http://www.springframework.org/schema/beans/spring-beans.xsd">
si je fais comme ca:j'obtient l'erreur:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
Partager