javax.servlet.ServletException: org.postgresql.util.PSQLException: SCRAM authentication is not supported by this driver. You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" versions)
解决方案,将/var/lib/pgsql/data/postgresql.conf里面的password_encryption = scram-sha-256改为password_encryption = md5,然后在psql命令行里面用ALTER USER postgres PASSWORD语句再设一次postgres用户的密码。