0
Follow
0
View

The power node wrote MyThreadlocal(binding the Connection object with the current thread) which caused a memory leak. And then connect the database to something else and keep reporting conn null

stvotvcctv 注册会员
2023-02-28 04:54

You didn't assign a value to this connection object conn. Look at your fetch connection without using its return value. See below:

Connection conn = DriverManager.getConnection(url, name, pwd);
chenw456 注册会员
2023-02-28 04:54

Thank you, I have not found before write a tool class, directly has been using the tool class. Really not found, still looking for the path problem

cz036842000 注册会员
2023-02-28 04:54
< div class = "md_content_show e397 data - v - 3967" = "" >

have the help, welcome to adopt ha ~