GraphQL is a specialized query language which gives us an alternative a more flexible approach to managing data in our application than restful design. In this tutorial we will learn how to use GraphQL with a Spring Boot application.
Data Access
This section will teach you how to add database access to the Spring Boot applications using the following elements:
- A running database, whether initiated by/embedded within your application or
simply accessible to your application - Database drivers enabling programmatic access, usually provided by the database vendor
- A Spring Data module for accessing the target database.
How to add initial data in Spring Boot JPA applications
In order to have some data inserted at application start up, all you have to do is creating a data.sql … Read more
How to get your DB Tables automatically created with Spring Boot
A common requirement when you are developing and testing your application is to use create and drop your database schema at start up. Let’s learn how to do that in a simple Spring Boot application.
How to define a Mock Repository in Spring Boot
The key to define a Mock Repository is the @Repository annotation. @Repository is a Spring annotation that indicates that the decorated class is a repository.
Create a JPA Application using Groovy and Spring Boot
You can create a Spring Boot application using Groovy either from the IDE or using the online Spring Boot application … Read more
How to connect to H2 Console in Spring Boot
In order to enable H2 In-Memory Database in Spring Boot applications you have to include the “h2” dependency in your … Read more
Configuring SpringBoot to use MySQL
In this tutorial we will learn how to create a basic application using Spring Boot CLI and MySQL as database. We will then import the application into an IDE to create a sample application which stores some data which is later retrieved by the SpringApplication class.