自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 SpringMVC项目

SpringMVC请求映射注解 Spring MVC 提供了以下这些请求映射注解: SpringMVC工程搭建 添加web 1.右键我们的项目名 2. 选择“Add Framework Support 3.选择WebApplication 4.核实版本号 5.核实是否会自动创建web.xml ps:添加好后会出现如下文件夹 搭建配置SpringMVC 引入依赖 <dependencies> <dependency> <groupId>junit

2021-04-14 09:12:05 105

原创 Mybatis操作数据库

准备数据源 # 删除mybatis_demo数据库 drop database if exists mybatis_demo; # 创建mybatis_demo数据库 create database mybatis_demo; # 使用mybatis_demo数据库 use mybatis_demo; # 创建account表Proxy Pattern create table user ( id int auto_increment primary key, username var

2021-04-13 22:40:27 44

原创 Mybatis实现Mapper配置查询数据

配置文件配置MyBatis 在resources文件夹下新建配置文件:mybatis-config.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <!-- 环

2021-04-13 22:29:53 95

原创 springAOP

简单转账功能 准备数据 # 删除spring_aop数据库 drop database if exists spring_aop; # 创建spring_aop数据库 create database spring_aop; # 使用spring_aop数据库 use spring_aop; # 创建account表 create table account ( id int(11) auto_increment primary key, accountNum varchar(20) d

2021-04-13 22:11:09 63

原创 spring IOC &DI

什么是控制反转(IOC) Ioc—Inversion of Control,即“控制反转”,它是一种设计思想,并不是什么技术;在 Java 中,IOC 意味着将我们设计好的对象交给容器控制,而不是传统的需要时在内部构造直接控制; 什么是依赖注入(DI) DI-Dependency Injection,即"依赖注入",就是由容器动态的将某个依赖注入到组件中。通过依赖注入机制,我们只需要简单的配置,无需任何代码就可以指定目标所需要的资源,从而完成自身的业务逻辑;我们无需关心具体的资源来自何处,提升了系统灵活性和

2021-04-13 21:45:35 43

原创 ORM程序设计

JDBC操作数据库步骤 1.注册驱动 DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 2.获取数据库连接 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/ssm", "root", "root"); 3.获取statement对象 PreparedStatement preparedStatement = connecti

2021-04-13 21:20:45 65

原创 Spring工程搭建

配置Spring 引入依赖 spring基础包: maven仓库查询:仓库查询 spring-core spring-beans spring-context spring-expression <dependencies> <!-- https://mvnrepository.com/artifact/org.springframework/spring-core --> <dependency> &l

2021-04-05 13:25:42 102 1

原创 SSH与SSM

spring简介 spring 是由Rod Johnson创建的一个轻量级开源框架,是针对bean的生命周期进行管理的轻量级容器。spring框架主要由七部分组成,分别有 Spring Core、Spring AOP、Spring ORM、Spring Context、Spring DAO、Spring Web、Spring MVC。 Spring核心功能 Spring的核心功能:控制反转(IOC) & 依赖注入(DI)、面向切面(AOP)。 控制反转:把对象的创建交外部容器完成。 依赖注入:处理对

2021-03-19 20:39:48 101

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除