Error: java.lang.IllegalArgumentException: Password hashing (prompt without echo) uses the java.io.Console to read passwords safely
Error: java.lang.IllegalArgumentException: Password hashing (prompt without echo) uses the java.io.Console to read passwords safely
当我尝试运行 shiro-tools-hasher-1.2.0-cli.jar 哈希密码时遇到错误。
C:\Users\admin\.m2\repository\org\apache\shiro\tools\shiro-tools-hasher.2.0>java -jar shiro-tools-hasher-1.2.0-cli.jar -p -d
错误:
java.lang.IllegalArgumentException: Password hashing (prompt without
echo) uses the java.io.Console to read passwords safely. This is only
available on Java 1.6 platforms and later.
at org.apache.shiro.tools.hasher.Hasher.readPassword(Hasher.java:412)
at org.apache.shiro.tools.hasher.Hasher.main(Hasher.java:164) Password hashing (prompt without echo) uses the java.io.Console to
read passwords safely. This is only available on Java 1.6 platforms
and later.
看来 shiro 的 JavaEnvironment
需要更新以支持 Java 8。它目前认为 Java 8 与 Java 1.3 相同。
IIRC,这已在 v1.2.6
中修复,但您至少应使用 v1.3.2
.
当我尝试运行 shiro-tools-hasher-1.2.0-cli.jar 哈希密码时遇到错误。
C:\Users\admin\.m2\repository\org\apache\shiro\tools\shiro-tools-hasher.2.0>java -jar shiro-tools-hasher-1.2.0-cli.jar -p -d
错误:
java.lang.IllegalArgumentException: Password hashing (prompt without echo) uses the java.io.Console to read passwords safely. This is only available on Java 1.6 platforms and later. at org.apache.shiro.tools.hasher.Hasher.readPassword(Hasher.java:412) at org.apache.shiro.tools.hasher.Hasher.main(Hasher.java:164) Password hashing (prompt without echo) uses the java.io.Console to read passwords safely. This is only available on Java 1.6 platforms and later.
看来 shiro 的 JavaEnvironment
需要更新以支持 Java 8。它目前认为 Java 8 与 Java 1.3 相同。
IIRC,这已在 v1.2.6
中修复,但您至少应使用 v1.3.2
.