Merge pull request #9306 from Maiklins/Java-1524-split-move-spring-boot-persistence
Java 1524 split move spring boot persistence
This commit is contained in:
commit
9c14404de9
@ -1,4 +1,8 @@
|
|||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
|
|
||||||
- [Using JDBI with Spring Boot](https://www.baeldung.com/spring-boot-jdbi)
|
- [Using JDBI with Spring Boot](https://www.baeldung.com/spring-boot-jdbi)
|
||||||
|
- [Configuring a Tomcat Connection Pool in Spring Boot](https://www.baeldung.com/spring-boot-tomcat-connection-pool)
|
||||||
|
- [Integrating Spring Boot with HSQLDB](https://www.baeldung.com/spring-boot-hsqldb)
|
||||||
|
- [List of In-Memory Databases](http://www.baeldung.com/java-in-memory-databases)
|
||||||
- [Oracle Connection Pooling With Spring](https://www.baeldung.com/spring-oracle-connection-pooling)
|
- [Oracle Connection Pooling With Spring](https://www.baeldung.com/spring-oracle-connection-pooling)
|
||||||
|
- More articles: [[<-- prev]](../spring-boot-persistence)
|
||||||
|
@ -104,6 +104,22 @@
|
|||||||
<artifactId>tomcat-jdbc</artifactId>
|
<artifactId>tomcat-jdbc</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xerial</groupId>
|
||||||
|
<artifactId>sqlite-jdbc</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.derby</groupId>
|
||||||
|
<artifactId>derby</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hsqldb</groupId>
|
||||||
|
<artifactId>hsqldb</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -7,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
@ -0,0 +1,8 @@
|
|||||||
|
jdbc.driverClassName=org.apache.derby.jdbc.EmbeddedDriver
|
||||||
|
jdbc.url=jdbc:derby:memory:myD;create=true
|
||||||
|
jdbc.user=sa
|
||||||
|
jdbc.pass=
|
||||||
|
|
||||||
|
hibernate.dialect=org.hibernate.dialect.DerbyDialect
|
||||||
|
hibernate.show_sql=true
|
||||||
|
hibernate.hbm2ddl.auto=create-drop
|
@ -0,0 +1,8 @@
|
|||||||
|
jdbc.driverClassName=org.h2.Driver
|
||||||
|
jdbc.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1
|
||||||
|
jdbc.user=sa
|
||||||
|
jdbc.pass=sa
|
||||||
|
|
||||||
|
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
||||||
|
hibernate.show_sql=true
|
||||||
|
hibernate.hbm2ddl.auto=create-drop
|
@ -0,0 +1,8 @@
|
|||||||
|
jdbc.driverClassName=org.hsqldb.jdbc.JDBCDriver
|
||||||
|
jdbc.url=jdbc:hsqldb:mem:myDb
|
||||||
|
jdbc.user=sa
|
||||||
|
jdbc.pass=
|
||||||
|
|
||||||
|
hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
||||||
|
hibernate.show_sql=true
|
||||||
|
hibernate.hbm2ddl.auto=create-drop
|
@ -0,0 +1,7 @@
|
|||||||
|
jdbc.driverClassName=org.sqlite.JDBC
|
||||||
|
jdbc.url=jdbc:sqlite:memory:myDb?cache=shared
|
||||||
|
jdbc.user=sa
|
||||||
|
jdbc.pass=sa
|
||||||
|
hibernate.dialect=com.baeldung.dialect.SQLiteDialect
|
||||||
|
hibernate.hbm2ddl.auto=create-drop
|
||||||
|
hibernate.show_sql=true
|
@ -1,3 +1,6 @@
|
|||||||
|
drop table if exists car_maker;
|
||||||
|
drop table if exists car_model;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Car makers table
|
-- Car makers table
|
||||||
--
|
--
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
- [Spring Boot with Multiple SQL Import Files](http://www.baeldung.com/spring-boot-sql-import-files)
|
- [Spring Boot with Multiple SQL Import Files](http://www.baeldung.com/spring-boot-sql-import-files)
|
||||||
- [Configuring Separate Spring DataSource for Tests](http://www.baeldung.com/spring-testing-separate-data-source)
|
- [Configuring Separate Spring DataSource for Tests](http://www.baeldung.com/spring-testing-separate-data-source)
|
||||||
- [Quick Guide on Loading Initial Data with Spring Boot](http://www.baeldung.com/spring-boot-data-sql-and-schema-sql)
|
- [Quick Guide on Loading Initial Data with Spring Boot](http://www.baeldung.com/spring-boot-data-sql-and-schema-sql)
|
||||||
- [Configuring a Tomcat Connection Pool in Spring Boot](https://www.baeldung.com/spring-boot-tomcat-connection-pool)
|
|
||||||
- [Hibernate Field Naming with Spring Boot](https://www.baeldung.com/hibernate-field-naming-spring-boot)
|
|
||||||
- [Integrating Spring Boot with HSQLDB](https://www.baeldung.com/spring-boot-hsqldb)
|
|
||||||
- [Configuring a DataSource Programmatically in Spring Boot](https://www.baeldung.com/spring-boot-configure-data-source-programmatic)
|
- [Configuring a DataSource Programmatically in Spring Boot](https://www.baeldung.com/spring-boot-configure-data-source-programmatic)
|
||||||
- [Resolving “Failed to Configure a DataSource” Error](https://www.baeldung.com/spring-boot-failed-to-configure-data-source)
|
- [Resolving “Failed to Configure a DataSource” Error](https://www.baeldung.com/spring-boot-failed-to-configure-data-source)
|
||||||
|
- [Hibernate Field Naming with Spring Boot](https://www.baeldung.com/hibernate-field-naming-spring-boot)
|
||||||
- [Spring Boot with Hibernate](https://www.baeldung.com/spring-boot-hibernate)
|
- [Spring Boot with Hibernate](https://www.baeldung.com/spring-boot-hibernate)
|
||||||
- [List of In-Memory Databases](http://www.baeldung.com/java-in-memory-databases)
|
- More articles: [[more -->]](../spring-boot-persistence-2)
|
Loading…
x
Reference in New Issue
Block a user