用java向数据库表格添加数据出现空指针异常

2025-02-26 22:28:30
推荐回答(2个)
回答1:

你的33行是不是应该是,stmt=conn.Createxxxxx?你的stmt没有实例化吧。

回答2:

stmt=conn.createStatement();