Spring-AOP

增加数据

# 删除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) default NULL,
money int(8) default 0
);

# 新增数据
insert into account (accountNum, money) values
("622200001",1000),("622200002",1000);

JDBC连接及操作数据库

代码实现:
Account模块Dao层实现类:AccountDaoImpl.java

 

posted on 2021-04-13 22:29  江流、  阅读(48)  评论(0)    收藏  举报