![](https://img.51dongshi.com/20241130/wz/18298511352.jpg)
在配置文件中設(shè)置一下就可以。。。 例如:以下是spring配置文件中的內(nèi)容,不懂可以繼續(xù)問(wèn)。。。 classpath:jdbc.properties ${jdbc.driver} ${jdbc.url} ${jdbc.username} ${jdbc.password} ${jdbc.maxActive} ${jdbc.maxIdle} ${jdbc.maxWait} 就算用mybatis你也得連接jdbc或連接池啊,才能獲取到dataSource屬性,接下來(lái)在下面配置mybatis。。。