current position:Home>What's the problem, please

What's the problem, please

2022-02-02 21:14:16 CSDN Q & A

Cannot invoke"java.sql.Connection.createStatement()"because"qq1.My SQL connection.conn"is null

Refer to the answer 1:

connection.conn"is null
Null pointer exception , Cannot get connection object . Where to get the connection ,catch The exception in the block is printed out , Otherwise you won't see the error message .
Note that the database version and the driver package version should be consistent .

Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.

Random recommended