遇到这种情况往往是因为[jdbc.properties]添加到项目中,但是没有编译到target中,因此需要在maven中重新compile一下 当target里有[jdbc.properties]文件重新run就可以了