在MySQL中建立user表,插入数据 create table user( id int, name varchar(10), age int )engine myisam charset utf8; insert into user(id,name,age) values (1,'zhang',18), (2,'lisi',20), (3,'laowang',30); 新建java工程,导入驱动jar包 java类 package com.itheima.domain; import jav…