kotlin("kapt") version "1.3.72"
idea
idea {
module {
val kaptMain = file("target/kotlin")
sourceDirs.add(kaptMain)
generatedSourceDirs.add(kaptMain)
}
}
server:
port: 9090
spring:
datasource:
url: jdbc:mysql://localhost:3306/locker_v1_dev?characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Seoul&useUnicode=true
username: root
password:
driver-class-name: org.mariadb.jdbc.Driver
## 운영 접속시 다시 한번 생각하기
jpa:
show-sql: true
# generate-ddl: true
hibernate:
# ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
@Configuration
class QuerydslConfiguration (
@PersistenceContext private val entityManager: EntityManager){
@Bean
fun jpaQueryFactory(): JPAQueryFactory{
return JPAQueryFactory(entityManager)
}
}
jpa.properties.hibernate.format_sql:true