I have a problem with coding Java in Cursor. When I write Java code, the error “class could not be found”always appears, preventing me from continuing. I want to know why this problem occurs and how to fix it. The Maven environment and Java runtime environment are properly set up, and the code can run normally. However, when I write code, red lines appear under the class name.“Package org.springframework.stereotype does not exist (compiler.err.doesnt.exist)”
Fix in Chat (⇧⌘D)”