From d6b6b4208362fcc9488b6ea12068f7bd7be231e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Brand=C3=A3o?= Date: Wed, 6 Mar 2024 16:28:51 -0300 Subject: [PATCH] Add H2 and security properties --- src/main/resources/application.properties | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 07d4105..11843b7 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,4 @@ +# Swagger Properties demo.openapi.contact.name=Rafael Brandão demo.openapi.contact.email=@raffaelbrandao.com demo.openapi.contact.url=https://www.raffaelbrandao.com/ @@ -7,3 +8,15 @@ demo.openapi.info.title=Spring Boot REST API demo demo.openapi.info.description=This is a demo Spring Boot REST API using springdoc-openapi and OpenAPI 3. demo.openapi.info.version=1.0 demo.openapi.info.terms=/terms +# Security Properties +demo.security.prefix=Bearer +demo.security.key=SECRET_KEY +demo.security.expiration=3600000 +# H2 Database Properties +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.url=jdbc:h2:mem:testdb +spring.datasource.username=sa +spring.datasource.password=sa +spring.jpa.show-sql:true +spring.h2.console.enabled=true \ No newline at end of file