0% found this document useful (0 votes)
16 views1 page

Fichier 1

Uploaded by

ratovolova
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Fichier 1

Uploaded by

ratovolova
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<?xml version="1.0" encoding="UTF-8"?

>
<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 class="org.company.maven.controller.ConsoleInvoiceController"


autowire="byType">-->
<bean class="org.company.maven.controller.ConsoleInvoiceController" >

<!-- <property name="invoiceService" ref="invoiceService"></property> =>


autowire-->
</bean>

<!-- <bean id="invoiceService"


class="org.company.maven.service.PrefixInvoiceService" autowire="byName">-->
<bean id="invoiceService"
class="org.company.maven.service.PrefixInvoiceService">
<property name="prefix" value="FACT_"></property>
<property name="lastNumber" value="100"></property>
<!-- <property name="invoiceRepository"
ref="invoiceRepository"></property>-->
</bean>

<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>

You might also like