注解配置模块
This commit is contained in:
parent
94c5aeec7e
commit
0e916e0e27
@ -23,6 +23,7 @@ public class LearnDaoImpl implements LearnDao {
|
||||
private DruidDataSource druidDataSource;
|
||||
@Override
|
||||
public void getLearnData() {
|
||||
System.out.println("捞取连接池中的数据");
|
||||
try {
|
||||
DruidPooledConnection connection = druidDataSource.getConnection();
|
||||
Statement statement = connection.createStatement();
|
||||
|
Loading…
x
Reference in New Issue
Block a user