springboot项目打成jar包后本地启动没问题,部署在服务器上启动,启动时报错java.sql.SQLException:Unable to load class:org.postgresql.Driver from ClassLoader但是jar包里面有这个类,这是为什么。
1、你本地打包后的jar包有多大?2、这明显是服务器上缺少postgresql的驱动类,可以检查一下你的依赖文件,是否导入相关包或作用范围是都对了