Segue meu código:
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("
"); writer.println(""); writer.println("Resultado da busca:"); writer.println(""); writer.println(""); } }Porém ao tentar acessar a pagina recebo um aviso:
HTTP Status 404 - /gerenciador/busca
type Status report
message /gerenciador/busca
description The requested resource is not available. Apache Tomcat/7.0.73
Gostaria de saber o que fazer para resolver esse problema.