遇到了很多问题:
1.字符编码问题
error:Unknown initial character set index 255 received from server. Initial client character set can be forced via the characterEncoding property.解决:String url "jdbc:mysql://localhos…
参考上一篇“访问显示数据库的信息(JDBC)”。对上一篇补充了判断登陆(用select查询),在数据表中插入信息的代码。
package com.kgy.entity;public class User {private int id;private String username;private Strin…