最近给帮另外的团队搞一个Server服务问题,因为服务很微小,所以使用SpringBoot + SQLite。看到很多SpringBoot + SQLite项目使用的是jpa,但是我对这种orm框架不是很感冒,MyBatis手写sql才能感觉顺畅。所以,自己动手丰衣足食。于是,我在https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc/3.20.0找到了相关jar包的信息,于是在 pom.xml 内加入了以下的引用:
org.xerial
sqlite-jdbc
3.20.0
test
就在我以为可以高兴地撸代码的时候,我却手动引入了隐患。在写好了一个简单的demo,准备看看效果的时候,出现了一下的错误:
java.sql.SQLException: Unable to load class: org.sqlite.JDBC from ClassLoader:sun.misc.Launcher$AppClassLoader@18b4aac2;ClassLoader:TomcatEmbeddedWebappClassLoader
context: ROOT
delegate: true
Original: https://blog.csdn.net/weixin_30217001/article/details/114973519
Author: 吴博士聊科研
Title: java sqllite maven_Maven 关于 SQLite-jdbc 驱动问题
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/817250/
转载文章受原作者版权保护。转载请注明原作者出处!