String DBDRIVER= "com.mysql.jdbc.Driver";
String DBURL ="jdbc:mysql://localhost:3306/netdisk?useUnicode=true&characterEncoding=utf-8";
String DBUSER ="root";
String DBPASS = "root";
写mysql的URL时 后面加上?useUnicode=true&characterEncoding=utf-8就行了
String DBDRIVER= "com.mysql.jdbc.Driver";
String DBURL ="jdbc:mysql://localhost:3306/netdisk?useUnicode=true&characterEncoding=utf-8";
String DBUSER ="root";
String DBPASS = "root";
写mysql的URL时 后面加上?useUnicode=true&characterEncoding=utf-8就行了