i’m trying to connect to a database hosted on AWS from my spring boot project.
these are my configurations
spring.application.name=Twitter-boot-API
# Server configuration
server.port=8080
server.servlet.context-path=/Twitter
# Database configuration
spring.datasource.url=jdbc:mysql://twitter-api.crk4s0eiknuf.ap-southeast-2.rds.amazonaws.com:3306/twitter-api
spring.datasource.username=admin
spring.datasource.password=3fRLR8kxiT
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# Hibernate configuration
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
what should I do?
guys help!
to connect to the server
New contributor
Manikandan N is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.