04 2023 档案

摘要:Controller其他功能 package com.feijian.controller; import com.feijian.pojo.Books; import com.feijian.service.BookService; import org.apache.ibatis.annotat 阅读全文
posted @ 2023-04-23 21:29 Rui2022 阅读(12) 评论(0) 推荐(0) 编辑
摘要:一、准备工作 1.1、搭建普通maven项目,framework的 web项目 1.2、加载maven依赖:junit - mysql-connector-C3P01 servlet-jsp / JSTL MyBatis MyBatis-spring spring-webmvc / jdbc lom 阅读全文
posted @ 2023-04-23 21:03 Rui2022 阅读(19) 评论(0) 推荐(0) 编辑
摘要:在对数据库进行操作的时候遇到了这样一个问题,数据库的表里的id是自增的,当数据被删除或者添加时,ID便会一直增上去,id就会变得很乱,不会按照顺序,今天查找了各个网站,终于找到了解决办法 alter table tablename drop column id;alter table tablena 阅读全文
posted @ 2023-04-23 13:56 Rui2022 阅读(270) 评论(0) 推荐(0) 编辑
摘要:第一步:编写工具类,注意openSession 参数如增加true ,则为事务自动提交 package com.feijian.utils; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSess 阅读全文
posted @ 2023-04-18 10:38 Rui2022 阅读(37) 评论(0) 推荐(0) 编辑
摘要:第一步:编写前端页面 第二步:设置首页 第三步:编写dao层用户dao 接口 第四步:编写Servic层用户Service接口实现类 第五步:编写Servic层用户Service接口 第六步:编写Servic层用户Service接口实现类 (用@Test测试一下是否可行) 第七步:编写LoginSe 阅读全文
posted @ 2023-04-14 22:48 Rui2022 阅读(227) 评论(0) 推荐(0) 编辑
摘要:第一步:生成一个java maven web项目 第二步:配置TOMCAT 第三步:测试项目是否可以跑起来 第四步:导入maven 各个jar包 +增加build 解决资源导出问题 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http 阅读全文
posted @ 2023-04-13 20:34 Rui2022 阅读(22) 评论(0) 推荐(0) 编辑
摘要:1、新建login.jsp 登录界面 响应的路径 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Login</title> </head> <body> <h1>登录界面< 阅读全文
posted @ 2023-04-11 22:00 Rui2022 阅读(33) 评论(0) 推荐(0) 编辑
摘要:Servlet类,没有乱码处理 package com.feijian.servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.H 阅读全文
posted @ 2023-04-09 17:11 Rui2022 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="java.util.ArrayList" %> <%@ page contentType="text/html;charset=UTF- 阅读全文
posted @ 2023-04-09 15:42 Rui2022 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<%-- Created by IntelliJ IDEA. User: Administrator Date: 2023/4/9 Time: 15:10 To change this template use File | Settings | File Templates. --%> <%@ p 阅读全文
posted @ 2023-04-09 15:23 Rui2022 阅读(13) 评论(0) 推荐(0) 编辑
摘要:<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>$Title$</title> </head> <body> <%-- 注释 JSP 带百分号--%> <%= new jav 阅读全文
posted @ 2023-04-08 21:52 Rui2022 阅读(14) 评论(0) 推荐(0) 编辑
摘要:C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2022.3\tomcat\d9485c44-c73c-4bf6-a90f-95238939a439\work\Catalina\localhost\ROOT\org\apache\ 阅读全文
posted @ 2023-04-08 21:09 Rui2022 阅读(7) 评论(0) 推荐(0) 编辑
摘要:package com.feijian.servlet; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import ja 阅读全文
posted @ 2023-04-06 20:05 Rui2022 阅读(9) 评论(0) 推荐(0) 编辑
摘要:package com.feijian.servlet; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; i 阅读全文
posted @ 2023-04-05 16:37 Rui2022 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示