Reputation: 301
The application lunches correctly, i am trying to consume a login API, when i lunch login process using swagger-ui, an exception is triggered:
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection
Caused by: java.sql.SQLRecoverableException: Erreur d'E/S: The Network Adapter could not establish the connection
2022-11-15 14:03:18,857 WARN (Agroal_2230584771) Datasource 'default': Erreur d'E/S: The Network Adapter could not establish the connection
this is the url from the database propreties panel: jdbc:oracle:thin:@bodswv092:1521:DEMO
How can i resolve this problem ?
Upvotes: 0
Views: 296
Reputation: 301
I was using the wrong datasource configuration, when i put the right host, credentials and service name in the application.propreties file.
Upvotes: 0