cannot resolve method 'get'
时间: 2023-09-14 15:04:41 浏览: 108
This error message usually occurs when you are trying to call the `get()` method on an object that does not have this method defined.
To fix this error, you need to check the object you are trying to call the `get()` method on and verify that the method is defined for that class or interface.
If the method is not defined, you may need to implement it or find an alternative method that achieves the same result. If the method is defined but you are still getting the error, you may need to check your syntax and ensure that you are using the correct parameters when calling the method.
相关问题
Cannot resolve method 'get' in 'FileSystem'
在Java编程中,如果你遇到了"Cannot resolve method 'get' in 'FileSystem'"的错误提示,通常是因为你在使用FileSystem类的时候调用了一个不存在的方法。FileSystem类是Java中用于操作文件系统的类,它提供了一些方法来进行文件和目录的操作。
要解决这个错误,你可以检查一下你调用的方法是否正确拼写,并且确保该方法在FileSystem类中是存在的。另外,还需要确认你是否正确导入了FileSystem类所在的包。
如果你能提供更多的上下文信息,比如你具体调用了哪个方法以及相关的代码片段,我可以给出更具体的帮助。
Cannot resolve method 'getConnection()'
这个错误通常表示你在尝试使用一个不存在的方法。如果你正在使用 JDBC 连接数据库,这个错误可能是因为你没有正确地加载数据库驱动程序或者没有正确地设置数据库连接参数。
请确保你已经正确地加载了 JDBC 驱动程序,并且在获取连接之前设置了正确的连接参数。这通常包括数据库 URL、用户名和密码。
如果你已经正确地加载了 JDBC 驱动程序并且设置了正确的连接参数,但是仍然遇到这个错误,请检查你的代码中是否有拼写错误或者语法错误。你可以参考一些 JDBC 的示例代码来确保你的代码是正确的。
阅读全文
相关推荐

















