上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、AOP切面编程 1、什么是AOP AOP是面向切面编程。全称:Aspect Oriented Programming 面向切面编程指的是:程序是运行期间,动态地将某段代码插入到原来方法代码的某些位置中。这就 阅读全文
posted @ 2019-10-30 09:29 维宇空灵 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、Spring之数据访问 1、Spring数据访问工程环境搭建 ​ jdbc.properties配置文件: jdbc.user=root jdbc.password=root jdbc.driverClas 阅读全文
posted @ 2019-10-30 09:29 维宇空灵 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 1、什么是IOC IOC 全称指的是 Inverse Of Control 控制反转。 原来我们使用Spring之前对象都是通过代码 new 对象()来自己进行创建。 现在使用了Spring之后。只需要在Spr 阅读全文
posted @ 2019-10-30 09:28 维宇空灵 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、对象的生命周期 1、IOC之Bean的生命周期 创建带有生命周期方法的bean public class Person { private Integer id; private Car car; publ 阅读全文
posted @ 2019-10-30 09:28 维宇空灵 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 目录 1、Spring概述 2、Spring的模块介绍 Spring框架分为四大模块: 3、Eclipse安装Spring的插件 1、Spring概述 ①Spring是一个开源框架 ②Spring为简化企业级开 阅读全文
posted @ 2019-10-30 09:27 维宇空灵 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、动态SQL语句 准备工作: public class User { private int id; private String lastName; private int sex; 1、if 语句 说明: 阅读全文
posted @ 2019-10-29 15:53 维宇空灵 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、myBatis的注解使用方式 package com.webcode.mapper; import java.util.List; import org.apache.ibatis.annotations. 阅读全文
posted @ 2019-10-29 15:52 维宇空灵 阅读(2670) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 一、MyBatis概述 1、mybatis简介 MyBatis 是支持定制化 SQL、存储过程以及高级映射的优秀的持久层框架。 MyBatis 避免了几乎所有的 JDBC 代码和手动设置参数以及获取结果集。 M 阅读全文
posted @ 2019-10-29 15:51 维宇空灵 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 常见业务处理 一、使用数据库处理常见业务: 案例: 如何对评论进行分页展示 使用 EXPLAIN 获得sql的执行计划 EXPLAIN SELECT customer_id,title,content from 阅读全文
posted @ 2019-10-28 10:02 维宇空灵 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 个人博客网:https://wushaopei.github.io/ (你想要这里多有) 登录日志的分区 如何为Customer_login_log表分区? 从以下两个业务场景入手: 用户每次登陆都会记录customer_login_log入职 用户登录日志保存一年,一年后可以删除 1、登录日志表的 阅读全文
posted @ 2019-10-28 09:53 维宇空灵 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页