feat: 테스트에서 Database 초기화를 하지 않도록 하는 어노테이션

This commit is contained in:
이상진 2025-07-12 17:59:06 +09:00
parent 8bf73217e4
commit 72d3c7093b

View File

@ -0,0 +1,11 @@
package roomescape.common
import org.springframework.test.context.TestPropertySource
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
@TestPropertySource(properties = [
"spring.jpa.hibernate.ddl-auto=none",
"spring.sql.init.mode=never"
])
annotation class NoSqlInitialize