You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do this without any xml or yml config , but only pure java code ,like below:
importorg.slf4j.LoggerFactory;
importch.qos.logback.classic.Level;
importch.qos.logback.classic.Logger;
Loggerlogger = (Logger) LoggerFactory.getLogger("org.springframework.jdbc.core.JdbcTemplate");
logger.setLevel(Level.valueOf("DEBUG"));
// or , for more details,you can retrieve another logger like this // Logger logger2 = (Logger) LoggerFactory.getLogger("org.springframework.jdbc");//logger2.setLevel(Level.valueOf("DEBUG"));
springboot-How to print JPA and jdbcTemplate SQL logs in SpringBoot apps?
https://www.bswen.com/2019/05/springboot-How-to-print-JPA-and-jdbcTemplate-SQL-logs.html
The text was updated successfully, but these errors were encountered: