Spring boot 中Cannot resolve class or package 'DB2Driver' less... (Ctrl+F1) 解决方法

在springboot 的配置文件中引入数据库出现的问题   解决办法:右击项目 选择 Open Module Settings    把 Dependencies中对应的runtime 修改为Compile。点击OK之后错误消失。原因是runtime代表只有运行时生效,Compile表示编辑即生效。
相关文章
相关标签/搜索