JAVAWEB-项目-实现登录功能步骤-2023-04-14

第一步:编写前端页面

第二步:设置首页

第三步:编写dao层用户dao 接口

第四步:编写Servic层用户Service接口实现类

第五步:编写Servic层用户Service接口

第六步:编写Servic层用户Service接口实现类 (用@Test测试一下是否可行)

第七步:编写LoginServlet类

第八步:web.xml注册LoginServlet

第九步:测试 (注意mysql的版本,如果低于6.0, driver = com.mysql.jdbc.Driver,不要有cj)

posted @ 2023-04-14 22:48  Rui2022  阅读(156)  评论(0编辑  收藏  举报