Theater-Database / src /main /resources /application.properties
AI-RESEARCHER-2024's picture
Update src/main/resources/application.properties
76b00f7 verified
raw
history blame
647 Bytes
spring.application.name=theater_database
# H2 Database Configuration for Hugging Face Spaces
spring.datasource.url=jdbc:h2:mem:creightontheater
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
# H2 Console (optional - for debugging)
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.jpa.show-sql=true
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
# Enable schema.sql initialization
spring.sql.init.mode=always
# Server port for Hugging Face Spaces
server.port=7860