db.properties configured in jdbc url like connection properties:
driver=org.sqlite.JDBC
url=jdbc:sqlite:D:/xxx/data/sqliteDB/demo.db
username=
password=
applicationContext.xml spring of configuration data source reference these properties, but unfortunately, being given the run:
Caused by: java.sql.SQLException: unkow jdbc driver : ${url}
solution:
The MapperScannerConfigurer section of the bean property sqlSessionFactory
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
改成:<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
Reproduced in: https: //www.cnblogs.com/godwithus/p/8878466.html