Couldn't find type java.sql.Date. Are you missing a dependency on your classpath?
时间: 2024-02-03 07:15:26 浏览: 41
This error message occurs when you try to use the `java.sql.Date` class in your Java code, but the necessary dependency is not included in your project's classpath.
To resolve this issue, you need to add the appropriate dependency to your project's build file (e.g., pom.xml for Maven or build.gradle for Gradle).
If you are using Maven, you can add the following dependency to your pom.xml file:
```
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
```
If you are using Gradle, you can add the following dependency to your build.gradle file:
```
implementation 'com.oracle:ojdbc6:11.2.0.3'
```
Make sure to replace the version number with the appropriate version of the Oracle JDBC driver that you are using.