I am doing @DataJpaTest on default spring boot settings. When I run the test, hibernate(?) is flooding console with schema creation messages like:
Hibernate: alter table ...
Hibernate: alter table ...
Hibernate: alter table ...
Hibernate: alter table ...
Hibernate: call next value ...
And so on. Does anyone knows how to disable this messages? I have logback configuration for test with log level OFF on root logger.
/Annonymous
The @DataJpaTest
by default show SQL output.
* If SQL output should be logged.
* @return if SQL is logged
*/
@PropertyMapping("spring.jpa.show-sql")
boolean showSql() default true;
you can set the showSql=false within the annotation @DataJpaTest(showSql=false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With