Avant toute chose merci 
Je tiens à dire que je suis débutant en Spring, c'est ma première application, il m'arrive donc de faire de grosse bêtise.
- Ta classe "Participant" représente un objet de domaine
Que dois je faire avec ma classe Participant ?
Déjà en termes d'architecture, c'est assez discutable,
Je chercher à apprendre, sachant quel classe j'utilise vous auriez une architecture à conseil ?!
Que pensez vous de ceci:

tu utilises le namespace p pour injecter un HelloService.
<bean class="controller.HelloController" p:implParticipantDao-ref="implParticipantDao" />
?
J'ai suivi le tutoriel de NetBeans et effectivement j'ai pas bien compris l'importance des namespace. 
Pour remédié au namespace que me conseiller vous ?
Sinon, as-tu regardé la conf par annotations?
Ne connaissant pas le sujet, je suis actuellement occupé à lire des informations sur le sujet
Je peu écrire mes controller dans le fichier dispatcher-servlet.xml ?
Participant, ParticipantDao, IParticipantDao et ImplParticipantDao doivent allez dans le applicationContext.xml ?
Cette injection est elle correcte (applicationContext.xml):
1 2 3 4 5 6 7 8 9 10 11 12 13
| <!-- Les classe metiers -->
<bean id="participant" class="controller.Participant"/>
<!-- Les class DAO -->
<bean id="participantDao" class="dao.ParticipantDao"/>
<bean id="implParticipantDao" class="dao.ImplParticipantDao">
<property name="participant" ref="participant"/>
<property name="participantDao" ref="participantDao"/>
</bean>
<bean class="controller.HelloController">
<property name="implParticipantDao" ref="implParticipantDao"/>
</bean> |
D'avance un grand merci à tous
Partager