为什么add()和update()抛出的是Expection
而其它的又是抛出SOLExpection
是Exception吧 SQLException是Exception的子类 抛出Exception就抛出了Exception 你把Exception改成Exception应该也没错吧