Bonjour tout le monde
J'essaie de suivre un tutoriel qui parle de Spring IDE avec Hibernate.
j"utiliser le framework spring 3.2 realise et jai crer ma propre libraire qui contient tous les jar de framework ainsi j'ai une autre librairie hibernate4
Je fais les mêmes exemples mais j'ai toujours ce message :
Pourquoi s'il vous plait ? je suis bloquer SVP des proposition si c"set possible
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...ring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schem...ng-aop-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schem...ontext-3.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"> <bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="org.postgresql.Driver"/> <property name="url" value="jdbc:postgresql:T"/> <property name="username" value="postgres"/> <property name="password" value="root"/> </bean> <bean id="SessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="datasource" ref="datasource"/>[B]No setter found for property 'datasource' in class 'org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean'[/B] <property name="annotatedClasses"> <list> <value>com.model.Cours</value> <value>com.model.Student</value> </list> </property> </bean> </beans>![]()
Partager