Java 连接MySQL,返回Json数据
Class.forName("com.mysql.jdbc.Driver");
String path = "jdbc:mysql://127.0.0.1:3360/MyServletDB";
Connection con = DriverManager.getConnection(path,"root","root");
PreparedStatement ps = (PreparedSt
原创
2017-05-02 21:53:01 ·
5176 阅读 ·
0 评论