If you are using DataJpaTest you need to set @DataJpaTest(showSql = false) since it overrides application.properties