1

Web アプリケーションに heroku 組み込み tomcat を使用しています。

私のユーザー登録ページには、次の機能があります。

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>

しかし、変更をgit pushしようとすると、エラーが発生します。

cannot find symbol : variable BCrypt

私の関数呼び出しで。私は何が欠けていますか?

私のインポートは次のようになります。

import org.mindrot.*;
4

1 に答える 1