Spring Jpa RollbackTest가 정상적으로 되지 않을 때

고생하엿던 부분.

스프링 jpa테스트를 진행하려고 하던 도중 만약에 안될시

1
2
3
4
5
Issue is with MySQL Database engine. My engine was MYIsam which doesn't supports Transactions. I changed my DB engine to InnoDB and its working. Thanks for the contributions. Below are the queries for the same.

SELECT ENGINE FROM information_schema.TABLES WHERE TABLE_NAME = 'tabel_name' AND TABLE_SCHEMA='db_name';

ALTER TABLE table_name ENGINE = INNODB;

위의 부분을 확인해보자… (https://stackoverflow.com/questions/54293032/spring-boot-jpa-transactional-annotation-roll-back-is-not-working)