Tomcat 7 keeps giving me a 404. What am I doing wrong?

后端 未结 2 1050
长发绾君心
长发绾君心 2021-01-14 14:46

this is my first servlet ever. here is it\'s code.

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class Ch1Servlet extends Htt         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 15:23

    You should config your ch1 context, in server.xml ,like this:

    
    

提交回复
热议问题