Java 更改日志语言Spring Boot

Java 更改日志语言Spring Boot,java,postgresql,spring-boot,logging,Java,Postgresql,Spring Boot,Logging,我有一个应用程序在Windows机器上运行,这台机器的语言是法语,我的应用程序使用PostgreSQL,当我看到错误日志时,我发现语言是法语: org.postgresql.util.PSQLException: FATAL: authentification par mot de passe ▒chou▒e pour l'utilisateur ▒ postgres ▒ (pgjdbc: autodetected server-encoding to be ISO-8859-1, if th

我有一个应用程序在Windows机器上运行,这台机器的语言是法语,我的应用程序使用PostgreSQL,当我看到错误日志时,我发现语言是法语:

org.postgresql.util.PSQLException: FATAL: authentification par mot de passe ▒chou▒e pour l'utilisateur  ▒ postgres ▒ (pgjdbc: autodetected server-encoding to be ISO-8859-1, if the message is not readable, please check database logs and/or host, port, dbname, user, password, pg_hba.conf)
我尝试在main方法中设置区域设置,但不起作用:

Locale.setDefault(new Locale("en", "EN"));
有没有办法将此日志更改为英语?

我相信您可以在这里找到解决方案。添加拦截器bean以前解决了我的问题