Hello,
J ai un petit soucie dans une application de test, je cherche a loadé l'application context mais il ne le trouve pas
voici mon code
j ai essayé plusieurs path donc juste "applicationContext" mais rien n'y fait
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("WEB-INF\\applicationContext.xml"); AccountTypeDbDAO dao = AccountTypeDbDAO.getFromApplicationContext(appContext); List<AccountTypeFrDb> list = dao.findByExample(null); for (int i = 0; i < list.size(); i++) { out.println(list.get(i).getText()); }
merci
edit également testé WEB-INF/applicationContext.xml marche pas non plus
également testé
mais la j obtiens java.lang.IllegalStateException: No WebApplicationContext found: not in a DispatcherServlet request?
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
mon web.xml contient
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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

 

 
		
		 
        

 
			
			 
   


 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing X
 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing X
				 Répondre avec citation
  Répondre avec citation
Partager