Advertisement
sergAccount

Untitled

Apr 4th, 2021
781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.spec;
  7.  
  8. import com.spec.util.DataBaseUtil;
  9. import java.sql.Connection;
  10. import java.sql.SQLException;
  11.  
  12.  
  13. public class Test {
  14.     //
  15.     public static void main(String[] args) {
  16.        
  17.         try {
  18.             Connection c = DataBaseUtil.getConnection();
  19.             System.out.println("c=" + c);
  20.         } catch (SQLException ex) {
  21.             ex.printStackTrace();
  22.         }        
  23.     }    
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement