1 pièce(s) jointe(s)
Erreur 404 incomprehensible
Bonjour,
Mon projet marché tres bien jusqu'a que j'essaye d'ajouter Hibernate dans tout ca.
J'ai une erreur 404 apres l'ajout de la dependance mySQL dans mon pom.xml.
Si je la retire tout remarche.
Quelqu'un a une idée ?
Index.jsp
Code:
1 2 3 4
| <center>
<h2>TEST</h2>
<h3>
<a href="agenda/monAgenda">Consulter Agenda</a> |
Controller
Code:
1 2 3 4 5 6 7 8 9 10 11
| @Controller
@RequestMapping("/agenda")
public class AgendaController {
@RequestMapping(value = "/monAgenda", method = RequestMethod.GET)
public ModelAndView MonAgenda() {
ModelAndView mv = new ModelAndView("AgendaEvent");
return mv;
} |
Dispatcher
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<context:component-scan base-package="fr.bigbob.agenda" />
<mvc:annotation-driven />
<mvc:default-servlet-handler/>
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property> |
Pièce jointe 196320