上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 51 下一页
摘要: 1.创建实体类(entity下) package com.imooc.oa.entity; public class User { private Long userId; //user_id private String username; private String password; pri 阅读全文
posted @ 2022-11-15 01:07 李林林 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.缓存清除策略中的参数详解 <!--开启了二级缓存 eviction是缓存的清除策略,当缓存对象数量达到上限后,自动触发对应算法对缓存对象清除 1.LRU – 最近最久未使用:移除最长时间不被使用的对象。 O1 O2 O3 O4 .. O512 14 99 83 1 893 2.FIFO – 先进 阅读全文
posted @ 2022-11-12 18:41 李林林 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1.Mybatis的二级缓存 2.怎样开启Mybatis的二级缓存 3.怎样开启Mybatis的二级缓存 3.1 在MybatisTest.java中测试一级缓存 /** * 测试一级缓存 * @throws Exception */ @Test public void testLv1Cache() 阅读全文
posted @ 2022-11-12 18:05 李林林 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.什么是动态SQL 2.在pom.xml中添加 <select id="dynamicSQL" parameterType="java.util.Map" resultType="com.imooc.mybatis.entity.Goods"> select * from t_goods <whe 阅读全文
posted @ 2022-11-10 23:15 李林林 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-09 01:29 李林林 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.SLF4j与Logback 2.自定义使用logback日志 2.1 pom.xml <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</v 阅读全文
posted @ 2022-11-09 01:17 李林林 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-09 00:46 李林林 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.Sql注入是什么 2.俩种传值方式 3.相关语句(高级查询必须要进行sql拼接时用$,如${order},但绝对不能让用户从前台输入) <select id="selectByTitle" parameterType="java.util.Map" resultType="com.imooc.m 阅读全文
posted @ 2022-11-09 00:42 李林林 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1.更新 1.1 在goods.xml中编写 <update id="update" parameterType="com.imooc.mybatis.entity.Goods"> UPDATE t_goods SET title = #{title}, sub_title = #{subTitle 阅读全文
posted @ 2022-11-09 00:21 李林林 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1.selectKey与useGeneratedKeys的区别 2.代码示例 <!--selectKey与useGeneratedKeys的区别--> <!--selectKey用法--> <!--<insert id="insert" parameterType="com.imooc.mybati 阅读全文
posted @ 2022-11-07 22:57 李林林 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 51 下一页