1. Hibernate学习笔记

    1. Java链接数据库

    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    
    import java.util.List;
    import java.util.ArrayList;
    
    public class JdbcMain {
      public static void main(String[] args) throws ClassNotFoundException {
        // TODO: Load the SQLite JDBC driver (JDBC class implements ...
    Tagged as : Java Hibernate

Page 1 / 1