Java代码报错:The method xx方法( ) is undefined for the type XX类

如:
image

解决:一般是导包导错,如图上错误来源于要导sql包下的Connection类,却不慎导错其他包下的Connection类

posted @ 2021-09-15 18:15  热心邻居老王  阅读(2679)  评论(0)    收藏  举报