上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 51 下一页
摘要: 阅读全文
posted @ 2022-12-06 21:01 李林林 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1.注入list 2.注入set(不允许重复) 3.注入Map 4.注入Properties 阅读全文
posted @ 2022-12-04 23:56 李林林 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1.什么是SQL注入攻击 2.Mybatis的俩种传值方式 3.Mybatis的俩种传值方式的使用场景 3.1 goods.xml <select id="selectByTitle" parameterType="java.util.Map" resultType="com.imooc.mybat 阅读全文
posted @ 2022-12-04 23:45 李林林 阅读(11) 评论(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-29 21:08 李林林 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1.selectKey的用法 2.useGeneratedKeys的用法 3.测试实例 4.selectKey与useGeneratedKeys的区别 4.1显示与隐示 4.2 应用场景 4.3在Oracle中使用selectKey 5.总结 阅读全文
posted @ 2022-11-29 20:59 李林林 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-28 20:36 李林林 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.applicationContext.xml <bean id="andy" class="com.imooc.spring.ioc.entity.Child"> <constructor-arg name="name" value="安迪"/> <constructor-arg name="a 阅读全文
posted @ 2022-11-28 20:21 李林林 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.数据库事务 2.新增 3.实现步骤 3.1 goods.xml 在插入的时候没有插入主键是因为主键设置成了自增字段,<selectKey >的作用是进行主键回填 <insert id="insert" parameterType="com.imooc.mybatis.entity.Goods" 阅读全文
posted @ 2022-11-28 20:06 李林林 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1.ResultMap结果映射 2.利用java对象保存保存多表关联结果 2.1 创建GoodsDTOd.java,用于对原始数据进行扩展,用于数据保存和传递(src/main/java/com/imooc/mybatis/dto) 2.2 goods.xml 2.3 测试类 2.4 对上述案列进行 阅读全文
posted @ 2022-11-24 23:41 李林林 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1.对象依赖注入 2.利用setter实现静态数值的注入 2.1 pom.xml <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.2.6.RE 阅读全文
posted @ 2022-11-24 01:18 李林林 阅读(22) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 51 下一页