1
0
-1
1 answer
- 10-1
Google has tons of resources online cos this is standard Java, for example https://www.infoworld.com/article/3388036/what-is-jdbc-introduction-to-java-database-connectivity.html and How+to+Create+a+Database+Connection+using+java+jdbc
Add your comment...
I want to make sql server queries through an AppUtil.getApplicationContext().getBean but I don't know how it really works
DataSource ds = (DataSource)AppUtil.getApplicationContext().getBean(
"setupDataSource"
);
con = ds.getConnection();