1 2 3 4 5 ··· 17 下一页
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!--view层 模板--> <div id="app"> <!--组件,传递给组件中的值:prop 阅读全文
posted @ 2023-07-07 15:33 Rui2022 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <head> <meta charset="UTF-8"> <title>Title</title> <!--导入vue--> <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.min.js"></script></head> 阅读全文
posted @ 2023-07-03 22:42 Rui2022 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(10) 评论(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 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 在对数据库进行操作的时候遇到了这样一个问题,数据库的表里的id是自增的,当数据被删除或者添加时,ID便会一直增上去,id就会变得很乱,不会按照顺序,今天查找了各个网站,终于找到了解决办法 alter table tablename drop column id;alter table tablena 阅读全文
posted @ 2023-04-23 13:56 Rui2022 阅读(250) 评论(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 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-04-15 21:59 Rui2022 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 第一步:编写前端页面 第二步:设置首页 第三步:编写dao层用户dao 接口 第四步:编写Servic层用户Service接口实现类 第五步:编写Servic层用户Service接口 第六步:编写Servic层用户Service接口实现类 (用@Test测试一下是否可行) 第七步:编写LoginSe 阅读全文
posted @ 2023-04-14 22:48 Rui2022 阅读(156) 评论(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 阅读(11) 评论(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 阅读(20) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 17 下一页