02 2023 档案

摘要:1.工作流程 1.读取配置文件和映射文件。 2.生成SqlSessionFactory对象:生成SqlSession 3.SqlSession通过Executor执行器接口操作数据库,其有俩个实现类,一个是普通执行器,缓存执行器。 4.Executor执行器将Sql信息封装到MapperStatem 阅读全文
posted @ 2023-02-27 11:06 lwx_R 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1.pom.xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.5</version> </dependency> 阅读全文
posted @ 2023-02-24 23:33 lwx_R 阅读(24) 评论(0) 推荐(0) 编辑
摘要:1.表中主键名称和实体类中不对应,导致结果为空 添加resultMap映射关系 <resultMap id="articleMap" type="wenxuan.ltd.LwxWeb.entity.Article"> <id column="article_id" property="article 阅读全文
posted @ 2023-02-22 11:56 lwx_R 阅读(10) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/2211217/202302/2211217-20230221190013960-2049976949.png) 阅读全文
posted @ 2023-02-21 19:00 lwx_R 阅读(20) 评论(0) 推荐(0) 编辑
摘要:2.连接表达式 3.变量表达式(数据渲染) 4.消息表达式 阅读全文
posted @ 2023-02-21 19:00 lwx_R 阅读(8) 评论(0) 推荐(0) 编辑
摘要:需要在web.xml里将拦截器删除 将下面注释掉 <!--post乱码过滤器--> <!-- 配置springMVC编码过滤器 --> <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.spri 阅读全文
posted @ 2023-02-21 18:53 lwx_R 阅读(22) 评论(0) 推荐(0) 编辑
摘要:1.No converter found for return value of type: class java.util.ArrayList springmvc 默认是没有对象转换成json的转换器的 手动添加jackson依赖 <!-- jackson--> <dependency> <gro 阅读全文
posted @ 2023-02-21 18:50 lwx_R 阅读(19) 评论(0) 推荐(0) 编辑
摘要:1.get请求在url中通过?指定参数 直接将其写在参数上即可获得 public String addUser1(String username,String password) { System.out.println("username is:"+username); System.out.pr 阅读全文
posted @ 2023-02-21 13:07 lwx_R 阅读(14) 评论(0) 推荐(0) 编辑
摘要:1.pom.xml <!-- 图形验证码--> <dependency> <groupId>com.github.whvcse</groupId> <artifactId>easy-captcha</artifactId> <version>1.6.2</version> </dependency> 阅读全文
posted @ 2023-02-21 00:18 lwx_R 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1.使用fastJson 2.controller层 @PostMapping("") @ResponseBody public BaseResponse jsonFunction(@RequestBody String jsonData){ BaseResponse baseResponse = 阅读全文
posted @ 2023-02-21 00:12 lwx_R 阅读(19) 评论(0) 推荐(0) 编辑
摘要:1.下载layuiAdmin实例 2.修改std版本的views界面 3.实体管理界面 3.1 表单html <!-- 文章列表--> <div class="layui-card-body"> <div style="padding-bottom: 10px;"> <button class="l 阅读全文
posted @ 2023-02-21 00:03 lwx_R 阅读(1006) 评论(0) 推荐(0) 编辑

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