Why does BasicDataSource object reinitialisation cause ‘data source is closed’ error?
I have a BasicDataSource bean called dataSource and this is used to establish JDBC connection.
Unable to run multiple SQL scripts on Spring boot startup
I’m trying to run two different SQL scripts when my Java application starts. One for creating the schemas and one for inputting test data. I’d like to keep them separated so I don’t have the edit both files if I have to change something about the schemas in the future.