Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 710 Bytes

README.md

File metadata and controls

23 lines (22 loc) · 710 Bytes

tips-&-tricks

Resynch WSL with windows clock after laptop standby

sudo ntpdate pool.ntp.org 

or

sudo hwclock -s

Change log level at runtime with spring boot actuator

curl -i -X POST -H "Content-Type: application/json" -d '{"configuredLevel":"trace"}' http://localhost:8083/actuator/loggers/org.springframework.jms

Enable remote debug with JVM and spring boot

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -jar myapp.jar

with maven

mvn spring-boot:run -Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"

more info here