我在spring上下文中初始化了datasource bean.我想知道应该采用什么方式?为什么我只是不能写dataSource.getConnection()?
java spring
java ×1
spring ×1