heimir-sverrisson / spring-persist

Exercise in using spring-boot and persistance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persist

A test project for spring-boot persistance.

Installation

Pull down this repo and write a application properties file:

cat > src/main/resources/application.properties
spring.datasource.url = jdbc:postgresql://localhost:5432/__NAME_OF_DATABASE__
spring.datasource.username = __DATABASE_USER__
spring.datasource.password = __DATABASE_PASSWORD__

# Silence an exception
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
# Update the schema - if needed
spring.jpa.hibernate.ddl-auto=update

Install everything:

mvn clean; mvn install;

Finally run the application:

mvn spring-boot:run

Test it out by navigating to: http://localhost:8080/swagger-ui.html

About

Exercise in using spring-boot and persistance


Languages

Language:Java 100.0%