Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

No mapping found for HTTP request with URI

Tentei refazer um exemplo básico do curso, e encontrei o seguinte problema:

set 15, 2016 9:45:04 AM org.springframework.web.servlet.PageNotFound noHandlerFound ADVERTÊNCIA: No mapping found for HTTP request with URI [/arena/criar-conta] in DispatcherServlet with name 'spring mvc'

criar-conta.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<form action="adicionarConta" method="post">

Login:<br/>
<input type="text" id="login">
E-mail:<br/>
<input type="text" id="email">
Senha:<br/>
<input type="password" id="senha">

<input type="submit" value="Adicionar    ">

</form>

</body>
</html>

PessoaController:

package br.com.arena.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PessoaController {

    @RequestMapping("criar-conta")
    public String execute(){
        return "criar-conta";
    }

}
1 resposta
solução!

Alterei o seguinte no web.xml:

<servlet-mapping>
        <servlet-name>spring mvc</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>