| | |
| | | import java.sql.PreparedStatement; |
| | | import java.sql.SQLException; |
| | | |
| | | import static org.springblade.common.constant.FtpConstant.localPath; |
| | | import static org.springblade.common.constant.FtpConstant.sql_connect_dev; |
| | | |
| | | public class MysqlCenlint { |
| | | |
| | | /** |
| | |
| | | try { |
| | | int ColumnCount; |
| | | //int RowCount; |
| | | String driver = "com.mysql.jdbc.Driver"; |
| | | String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息 |
| | | String driver = "com.mysql.cj.jdbc.Driver"; |
| | | String url = sql_connect_dev; //换成要连接的数据库信息 |
| | | String user = "root"; |
| | | String password = "zhba0728"; |
| | | Class.forName ( driver ); |
| | |
| | | try { |
| | | int ColumnCount; |
| | | //int RowCount; |
| | | String driver = "com.mysql.jdbc.Driver"; |
| | | String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息 |
| | | String driver = "com.mysql.cj.jdbc.Driver"; |
| | | String url = sql_connect_dev; //换成要连接的数据库信息 |
| | | String user = "root"; |
| | | String password = "zhba0728"; |
| | | Class.forName ( driver ); |
| | |
| | | try { |
| | | int ColumnCount; |
| | | //int RowCount; |
| | | String driver = "com.mysql.jdbc.Driver"; |
| | | String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息 |
| | | String driver = "com.mysql.cj.jdbc.Driver"; |
| | | String url = sql_connect_dev; //换成要连接的数据库信息 |
| | | String user = "root"; |
| | | String password = "zhba0728"; |
| | | Class.forName ( driver ); |
| | |
| | | file.delete(); |
| | | } |
| | | } |
| | | /** |
| | | * 删除本地文件 |
| | | */ |
| | | public static void deletess(String fileName){ |
| | | File file = new File(localPath+fileName); |
| | | if (file.isFile() && file.exists()) { |
| | | file.delete(); |
| | | } |
| | | } |
| | | } |