Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diyhi/bbs
/ getConnection
Method
getConnection
src/main/java/cms/utils/SpringConnection.java:16–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
*/
15
public
class
SpringConnection {
16
public
static
Connection getConnection()throws SQLException{
17
return
DataSourceUtils.getConnection((DataSource)SpringConfigTool.getContext().getBean(
"dataSource"
));
18
}
19
}
Callers
1
add
Method · 0.45
Calls
1
getContext
Method · 0.95
Tested by
no test coverage detected