if you use multi(write, read) db endpoint and use @transaction(readOnly=true) then it works - datasource: url: mysql://{write db url}:3306,{read db url}:3306/db_name?useSSL=false - @Transactional(readOnly = true) - build.gradle implemxentation 'mysql:mysql-connector-java' if you use secrects manager then you should apply driver info - datasource: url: jdbc- secretsmanager :mysql:aurora://{write db url}:3306,{read db url}:3306/db_name?useSSL=false driver-class-name: com.amazonaws.secretsmanager.sql.AWSSecretsManagerMariaDBDriver - build.gradle implementation 'mysql:mysql-connector-java' implementation 'com.amazonaws.secretsmanager:aws-secretsmanager-jdbc:1.0.6' implementation 'org.mariadb.jdbc:mariadb-java-client' AWS Secrets Manager JDBC is a wrapper, so you need to add a driver dependency that fits the DB separately.