Home > Back-end >  Error: (3, 20) Java: package com. Mysql. Cj does not exist
Error: (3, 20) Java: package com. Mysql. Cj does not exist

Time:04-30

Error: (6, 18) Java: package sun. Nio. Cs. Ext invisible
(package sun. Nio. Cs. Ext has set up a module in the JDK. Charsets declared in, but not the module module diagram)

Error: (3, 20) Java: package com. Mysql. Cj there is no

The two errors with me one day, the Internet is no good answer, for these two JAVA package or solution

CodePudding user response:

This is not MySQL package, this is what function, even the MySQL database

CodePudding user response:

https://blog.csdn.net/lvhjean/article/details/81413139

The initial SpringBoot

IDEA with built-in Maven environment, the default using Maven project dependent problem, after the new project, the path of the project will be generated in the pom. The XML file and project name. On iml file, after the new project, the IDEA does not automatically refresh the Maven dependencies, in the Spring Application as an example, the new project compile time suggests the following error message:
Java: package org. Springframework. Stereotype does not exist
Java: package org. Springframework. Context there is no
Java: package org. Springframework. Context. The support was not found
Refresh Maven configuration method is:

(1) right click on the project;

(2) in the pop-up menu select Maven | Reimport menu items,

At this point, the IDEA will be automatically downloaded through the network related dependence, in a Maven's local repository, in addition, can set the refresh Maven for automatic, configuration method is:

(1) click File | Setting menu item, open the Settings TAB.

(2) on the left side of the directory tree, a Maven node;

(3) check the Import Maven projects automatically option,
  • Related