Git Product home page Git Product logo

sample-spring-data-jpa-testcontainers-utilization's Introduction

Spring Data JPA Testcontainers utilization sample

Actions Status Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating License

This sample shows how to utilize the Testcontainers usage with Spring Data JPA (and Spring Boot).

How to build and run

If you want to see the implementation in action, simply follow these steps:

  • First, make sure that you have Java 8 or later installed and an established Internet connection.
  • Then, make sure that you have a Postgresql database up and running and configured in a way that the properties in the application.yml match (or change the properties to match against your environment).
  • Then, clone this Git repository an cd into the project folder.
  • Now invoke ./mvnw spring-boot:run and wait a moment.

After the project is built and the Spring Boot service is running you have the following possibilities to act with the service:

  • http://localhost:8080 allows to access this site.
  • Access the administration tool of your database to realize the things that happened there.

Most important annotations and classes

A collection of the most important annotations and classes that are necessary to implement this use case.

Used frameworks

A collection of the mainly used frameworks in this project. There are more, but they are not that present inside the main use case, therefore they are not listed here.

Additional guides

The following guides illustrate how to implement this and related use cases.

License

This code is open source software licensed under the Apache 2.0 License.

sample-spring-data-jpa-testcontainers-utilization's People

Contributors

dependabot[bot] avatar ingogriebsch avatar

Watchers

 avatar  avatar  avatar

sample-spring-data-jpa-testcontainers-utilization's Issues

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.springframework.data:spring-data-commons:1.13.10.RELEASE

Vulnerabilities

DepShield reports that this application's usage of org.springframework.data:spring-data-commons:1.13.10.RELEASE results in the following vulnerability(s):


Occurrences

org.springframework.data:spring-data-commons:1.13.10.RELEASE is a transitive dependency introduced by the following direct dependency(s):

org.springframework.boot:spring-boot-starter-data-jpa:1.5.10.RELEASE
        └─ org.springframework.data:spring-data-jpa:1.11.10.RELEASE
              └─ org.springframework.data:spring-data-commons:1.13.10.RELEASE

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 5.9) Vulnerability due to usage of com.google.guava:guava:21.0

Vulnerabilities

DepShield reports that this application's usage of com.google.guava:guava:21.0 results in the following vulnerability(s):

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.springframework:spring-core:4.3.14.RELEASE

Vulnerabilities

DepShield reports that this application's usage of org.springframework:spring-core:4.3.14.RELEASE results in the following vulnerability(s):


Occurrences

org.springframework:spring-core:4.3.14.RELEASE is a transitive dependency introduced by the following direct dependency(s):

org.springframework:spring-web:4.3.14.RELEASE
        └─ org.springframework:spring-aop:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework:spring-beans:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework:spring-context:4.3.14.RELEASE
              └─ org.springframework:spring-expression:4.3.14.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework:spring-core:4.3.14.RELEASE

org.springframework.boot:spring-boot-starter-data-jpa:1.5.10.RELEASE
        └─ org.springframework.boot:spring-boot-starter:1.5.10.RELEASE
              └─ org.springframework.boot:spring-boot:1.5.10.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework.boot:spring-boot-starter-jdbc:1.5.10.RELEASE
              └─ org.springframework:spring-jdbc:4.3.14.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework.data:spring-data-jpa:1.11.10.RELEASE
              └─ org.springframework.data:spring-data-commons:1.13.10.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
              └─ org.springframework:spring-orm:4.3.14.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
              └─ org.springframework:spring-tx:4.3.14.RELEASE
                    └─ org.springframework:spring-core:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE

org.springframework.boot:spring-boot-starter-test:1.5.10.RELEASE
        └─ org.springframework:spring-test:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE
        └─ org.springframework:spring-core:4.3.14.RELEASE

org.springframework.boot:spring-boot-starter-web:1.5.10.RELEASE
        └─ org.springframework:spring-webmvc:4.3.14.RELEASE
              └─ org.springframework:spring-core:4.3.14.RELEASE

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 9.8) Vulnerability due to usage of com.fasterxml.jackson.core:jackson-databind:2.8.10

Vulnerabilities

DepShield reports that this application's usage of com.fasterxml.jackson.core:jackson-databind:2.8.10 results in the following vulnerability(s):


Occurrences

com.fasterxml.jackson.core:jackson-databind:2.8.10 is a transitive dependency introduced by the following direct dependency(s):

org.springframework.boot:spring-boot-starter-web:1.5.10.RELEASE
        └─ com.fasterxml.jackson.core:jackson-databind:2.8.10

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

DepShield encountered errors while building your project

The project could not be analyzed because of build errors. Please review the error messages here. Another build will be scheduled when a change to a manifest file* occurs. If the build is successful this issue will be closed, otherwise the error message will be updated.

This is an automated GitHub Issue created by Sonatype DepShield. GitHub Apps, including DepShield, can be managed from the Developer settings of the repository administrators.

* Supported manifest files are: pom.xml, package.json, package-lock.json, npm-shrinkwrap.json, Cargo.lock, Cargo.toml, main.rs, lib.rs, build.gradle, build.gradle.kts, settings.gradle, settings.gradle.kts, gradle.properties, gradle-wrapper.properties, go.mod, go.sum

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.apache.tomcat.embed:tomcat-embed-core:8.5.27

Vulnerabilities

DepShield reports that this application's usage of org.apache.tomcat.embed:tomcat-embed-core:8.5.27 results in the following vulnerability(s):


Occurrences

org.apache.tomcat.embed:tomcat-embed-core:8.5.27 is a transitive dependency introduced by the following direct dependency(s):

org.springframework.boot:spring-boot-starter-web:1.5.10.RELEASE
        └─ org.springframework.boot:spring-boot-starter-tomcat:1.5.10.RELEASE
              └─ org.apache.tomcat.embed:tomcat-embed-core:8.5.27
              └─ org.apache.tomcat.embed:tomcat-embed-websocket:8.5.27
                    └─ org.apache.tomcat.embed:tomcat-embed-core:8.5.27

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.