Fichier 1
Fichier 1
>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<!-- http://www.springframework.org/schema/beans/spring-beans.xsd" default-
autowire="byType">-->
<context:annotation-config/>
<bean id="invoiceRepository"
class="org.company.maven.repository.LocalInvoiceRepository"/>
<!--id="invoiceService" => meme nom ppté dans le controleur-->
<!--id="invoiceRepository" => meme nom ppté dans le service-->
</beans>