Spring Boot - Reconnect to a database after its restart
问题 I have an Spring Batch application, which runs every 10 minutes. It gets some data from a REST API and then it saves these data on a database. Well, where is my problem now? Sometimes the database (Oracle) may restart, or go offline (no idea, really). But the application doesn't seem to reconnect to the database. It just stays on an idle mode. Spring Boot: 2.1.2.RELEASE The application.yml looks like this: app: database: jdbc-url: jdbc:oracle:thin:@<host>:<port>:<db> username: <username>