feat: add Spring Boot application entry point and base configuration
This commit is contained in:
1 parent
3441097efe
commit
49b1e28855
2 files changed
+52
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package com.slotline;
|
||||
|
||||
import com.slotline.config.SlotlineProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties(SlotlineProperties.class)
|
||||
public class SlotlineApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SlotlineApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
spring:
|
||||
application:
|
||||
name: slotline
|
||||
datasource:
|
||||
url: jdbc:h2:mem:slotline;DB_CLOSE_DELAY=-1;LOCK_TIMEOUT=10000
|
||||
username: sa
|
||||
password: ""
|
||||
driver-class-name: org.h2.Driver
|
||||
jpa:
|
||||
open-in-view: false
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
properties:
|
||||
hibernate:
|
||||
jdbc:
|
||||
time_zone: UTC
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration/{vendor}
|
||||
|
||||
slotline:
|
||||
jwt:
|
||||
secret: ${SLOTLINE_JWT_SECRET:dev-only-secret-change-me-0123456789-abcdefghij}
|
||||
expiration: PT12H
|
||||
issuer: slotline
|
||||
admin:
|
||||
username: ${SLOTLINE_ADMIN_USERNAME:admin}
|
||||
password: ${SLOTLINE_ADMIN_PASSWORD:admin12345}
|
||||
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
operations-sorter: method
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.flywaydb.core: info
|
||||
Reference in new issue
Block a user