二話不說
看代碼
package nn;
import java
import java
import java
public class DBConnToAccess {
//獲得路徑
String path = this
private Connection con = null;
public void getConn(){
try {
System
Class
String url=
n = DriverManager
System
} catch (ClassNotFoundException e) {
// TODO Auto
e
} catch (SQLException e) {
// TODO Auto
e
}
}
}
再看下包結構吧
在src下見一個db的文件夾
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26146.html