After decryption, there are garbled characters, as shown in the figure below (garbled characters + plaintext).
The reason is the encrypted padding method:
Cipher cipher = Cipher.getInstance("RSA");//错误,会导致乱码
The correct one should be
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
ok, it is displayed normally after modification