[英]Importing com.zaxxer.hikari.HikariConfig, cannot resolve symbol, IntelliJ
I'm doing simple web project using JEE 8.0 (no maven) I'm using IntelliJ Ultimate 2019.2.2.我正在使用 JEE 8.0(无 maven)做简单的 web 项目我正在使用 IntelliJ Ultimate 2019.2.2。 Trying to import files:
import com.zaxxer.hikari.HikariDataSource;
尝试导入文件:
import com.zaxxer.hikari.HikariDataSource;
I get error Cannot resolve symbol 'zaxxer' I've seen issues where people were using Maven, but i do not use it, it's clean JEE project.我收到错误无法解析符号 'zaxxer'我已经看到人们使用 Maven 的问题,但我不使用它,它是干净的 JEE 项目。 I've tried it to run as administrator or to "find JAR on the web" option, but it failed.
我试过它以管理员身份运行或“在网络上查找 JAR”选项,但失败了。
Also, my file structure looks like this: project structure此外,我的文件结构如下所示:项目结构
I'll be glad for any suggestions.我会很高兴有任何建议。
Find a jar with this class and add it to the module dependencies . 用这个 class 找到一个 jar并将其添加到模块依赖项中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.