标签:12px tom pass local soft sof 端口 java mic
sqlserver默认端口号为:1433
URL:"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname"
DRIVERNAME:"com.microsoft.jdbc.sqlserver.SQLServerDriver";
MySQL 默认端口号为:3306
URL:jdbc:mysql://localhost:3306/test?user=root&password=&useUnicode=true&characterEncoding=gbk
DRIVERNAME:"com.mysql.jdbc.Driver";
Oracle 默认端口号为:1521
URL:"jdbc:oracle:thin:@localhost :1521:orcl";
DRIVERNAME:"oracle.jdbc.driver.OracleDriver";
java乱码的原因:
1。前台与后台的编码方式不一样
2。tomcat服务器默认的编码方式为"ISO8859-1",使用get方法就会造成乱码问题
new String(byte[],"utf-8”); 将byte[]字节 转换成utf-8编码方式
标签:12px tom pass local soft sof 端口 java mic
原文地址:http://www.cnblogs.com/javaluyao/p/6158347.html