Skip to content

refactorizando-web/spring-data-postgresql-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring Data Example with PostgreSQL

Introduction

The main object of this service is make a connection with postgreSql using Spring Data. And use Testcontainers to verify our application with Integration test. If you want more information you can take a look into:

How does it run?

Hibernate Batch

In this example we are using hibernate batch to allow save in batch mode in database. To enable this feature you need to add the next properties in your properties file:

         jdbc.batch_size: 10
         order_updates: true
         batch_versioned_data: true

Run docker

docker run --network host --name postgres -e POSTGRES_PASSWORD=postgres -d postgres

Run the application

mvn spring-boot:run

About

Example with Spring Data and postgresql with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages