begin with the h2 and spring-boot-starter-data-jpa dependencies:


Database Configuration

By default, Spring Boot configures the application to connect to an in-memory store with the username sa and an empty password.

However, we can change those parameters by adding the following properties to the file:

Default password is empty but when you write any “password “ you just assign new passoword


we can change the location of data store FILE-BASED instead of IN MEMORY


Accessing the H2 Console

If we don’t enable it we can not access, we need to add…

Hello I will show you really fast how to use Swagger with spring boot app.




After adding to pom.xml

public class SpringFoxConfig {
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)

After open the browser with this link


Also you can check with url http://localhost:8080/v2/api-docs

Tayfun ÇELİK

Full Stack Developer Java & Angular

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store