I built an application and deployed locally ... and it was working perfectly. I deployed it on a remote server and started getting the exception mentioned in the subject lin
First Replace the MySQL dependency as given below
mysql mysql-connector-java 5.1.44
An error showing "Authentication plugin 'caching_sha2_password'" will appear. Run this command:
mysql -u root -p ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';