File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change 11# spring-boot-multi-hsql
2- A Spring-Boot-Example with an unlimted an easy to configure HSQL file based Database
2+ A Spring-Boot-Example with an unlimted an easy to configure HSQL file based _ permanent_ database
3+
4+ ### My intro to GitHub ... comming soon
5+ ### Description
6+
7+ From time to time I need more than one _ independet_ und _ permanent_ databases to
8+ * see whats going on in my tables
9+ * try out my XA-Transactions
10+ * do some rapid prototyping with permanent data
11+
12+ Spring-Boot Autoconfigure just provide only * one* database out of the box, if that is enough for you, stop reading..
13+ to all the others ... this is comming soon ... here.
14+
15+ Here is a little spoiler of the usage :-)
16+
17+ ``` java
18+ @ConfigurationProperties (prefix = " cool.database" )
19+ @Bean
20+ public HSQLFileDatabaseServer coolDataBase() {
21+ return new HSQLFileDatabaseServerImpl (); // thats all, instantiate and starts the server
22+ }
23+
24+ @Bean
25+ public DataSource coolDatabaseDataSource() {
26+ return coolDataBase. getBasicDataSourceForFileDatabaseServer();
27+ }
28+
29+ ...
30+ and the Logging is
31+
32+ Your JDBC - Connection - String : jdbc: hsqldb: hsql: // mydomain:4000/COOL_DB
33+ ```
34+ so start your favorite database tool, cut&paste the jdbc-connection String and see whats happens
35+
36+
37+ ##### Thanks
38+ ...to the real cool employee of https://www.codecentric.de/
39+
You can’t perform that action at this time.
0 commit comments