我正在使用heroku嵌入式tomcat作为我的web应用程序。
在我的用户注册页面中,我具有以下功能:
private static String hashPwd(String pwd) {
return BCrypt.hashpw(pwd, BCrypt.gensalt());
}我在pom.xml中添加了这个依赖项:
<dependency>
<groupId>org.mindrot</groupId>
<artifactId>jbcrypt</artifactId>
<version>0.3m</version>
</dependency>但是,当我试图推送更改时,我会得到一个错误:
cannot find symbol : variable BCrypt在我的电话会议上。我遗漏了什么?
我的进口是这样的:
import org.mindrot.*;发布于 2017-04-03 11:43:52
我发现了问题。显然我不得不进口:
import org.mindrot.jbcrypt.*而不是
import org.mindrot.*https://stackoverflow.com/questions/43183370
复制相似问题