Estou obtendo o erro 404 ao tentar executar o exercício.
Estou usando Eclipse Java EE 4.5.2, java 8, tomcat 8.0
O http://localhost:8080/gerenciador/ está rodando, o erro aparece no /busca
A minha classe está assim:
package br.com.alura.gerenciador.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = "/busca")
public class BuscaEmpresa extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
PrintWriter writer = resp.getWriter();
writer.println("<html>");
writer.println("<body>");
writer.println("Resultado da busca:<br/>");
writer.println("</body>");
writer.println("</html>");
}
}