Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find type java.sql.Date. Are you missing a dependency on your classpath?

I'm trying to run my application in Spring Boot using MongoDB with spring-data but I can't because IntelliJ shows me this error during build:

Error:java: Couldn't find type java.sql.Date. Are you missing a dependency on your classpath?

I'm using mongo java driver version 3.8.2, spring boot 2.1 and project is in Java 11. I have no idea what is wrong here could someone help me please?

like image 384
Carath Avatar asked Nov 15 '25 01:11

Carath


1 Answers

Settings -> Build, Execution, Deployment -> Build Tools -> Maven/Gradle -> Runner -> tic on "Delegate IDE build/run actions"

like image 64
Denis125 Avatar answered Nov 17 '25 22:11

Denis125