-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.properties
24 lines (24 loc) · 1.14 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${SPRING_DATASOURCE_HOSTNAME:localhost}:${SPRING_DATASOURCE_PORT:3306}/${SPRING_DATASOURCE_DATABASE_NAME:hotelms}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME:root}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:h2:mem:testdb
#spring.datasource.driverClassName=org.h2.Driver
#spring.datasource.username=sa
#spring.datasource.password=
#spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
#spring.h2.console.enabled=true
#spring.h2.console.settings.web-allow-others=true
#spring.h2.console.path=/h2-console
spring.jpa.show-sql=true
security.jwt.token.secret-key=${SECURITY_JWT_TOKEN_SECRET_KEY:JGNG7PAMCPYKAMFGETCA2GSNK6UYTDN3}
server.servlet.contextPath=/api
springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
springdoc.api-docs.path=/rest-api-docs
springdoc.swagger-ui.path=/swagger-ui
springdoc.swagger-ui.tagsSorter=alpha
application.runner=${APPLICATION_RUNNER:false}
springdoc.default-produces-media-type=application/json
server.port=${SPRING_SERVER_PORT:8081}