MCPcopy 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 */
15public class SpringConnection {
16 public static Connection getConnection()throws SQLException{
17 return DataSourceUtils.getConnection((DataSource)SpringConfigTool.getContext().getBean("dataSource"));
18 }
19}

Callers 1

addMethod · 0.45

Calls 1

getContextMethod · 0.95

Tested by

no test coverage detected