Skip to content

Instantly share code, notes, and snippets.

@kjivan
Created March 2, 2024 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjivan/4c4796fb12ee314b55e16591a8bd4fe0 to your computer and use it in GitHub Desktop.
Save kjivan/4c4796fb12ee314b55e16591a8bd4fe0 to your computer and use it in GitHub Desktop.
Spring Boot Debugging

Spring Boot Debugging

Enable actuators and values

management.endpoints.web.exposure.include=*
management.endpoint.env.show-values=ALWAYS

Enable SQL Logging

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
logging.level.org.springframework.jdbc.core.JdbcTemplate=DEBUG
logging.level.org.springframework.jdbc.core.StatementCreatorUtils=TRACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment