随笔分类 -  java基础

摘要:1导入servlet需要的jar包 2新建servlet,继承HttpServlet并实现里面的方法 3在web.xml里面配置servlet(此时就可以在浏览器里面访问到方法了,/example/user) 4jsp请求方法(这里的路径可以为user也可以为/example/user,但不可以为/ 阅读全文
posted @ 2018-05-24 15:59 小样喂 阅读(172) 评论(0) 推荐(0)