.1创建表
create database ee19_spring_day02;
use ee19_spring_day02;
create table t_user(
id int primary key auto_increment,
username varchar(50),
password varchar(32)
);
insert into t_user(username,password) values(‘jack’,‘1234’);
insert into t_user(username,password) values(‘rose’,‘5678’);
.2导入jar包
.3javabean
package com.itheima.domain;
public class User {
private Integer id;
private String username;
private String password;