Initialize Spring Boot project

This commit is contained in:
2026-03-04 16:59:10 -07:00
commit 8612835c82
4 changed files with 205 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
spring:
application:
name: petshop-backend
datasource:
url: ${DB_URL:jdbc:mysql://localhost:3306/petshop?createDatabaseIfNotExist=true}
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:password}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: validate
show-sql: ${JPA_SHOW_SQL:false}
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
flyway:
enabled: true
baseline-on-migrate: true
locations: classpath:db/migration
server:
port: ${SERVER_PORT:8080}
servlet:
context-path: /
springdoc:
api-docs:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui
jwt:
secret: ${JWT_SECRET:your-256-bit-secret-key-change-this-in-production-min-32-chars}
expiration: ${JWT_EXPIRATION:86400000}
logging:
level:
com.petshop: ${LOG_LEVEL:INFO}
org.springframework.security: ${LOG_LEVEL_SECURITY:WARN}