Simple Date Format not thread safe

The java library SimpleDateFormat (java.text.SimpleDateFormat) cannot be considered thread safe and the programmer should avoid the usage in a multi thread environment. The problem is based on the way it’s implemented To fix the problem there are 3 main ways: To create a new instance of SimpleDateFormat for each usage Read more…

Prettier and VSCode

Basic usage of prettier formatter with VSCode Install prettier as your project dependency / dev-dependency (with npm or your desidered repo) Create a file called .prettierrc with basic options to share with your team member and commit it in the root directory of your project If you would like to Read more…

Log/Trace SOAP XML message spring boot

A short guide that briefly explain how to trace all inbound/outbound SOAP XML messages produced with java ws library. In this case it’s used the following implementation of java ws. Set into the “jvmArgs” a “true” the option “com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump” Now all the SOAP messages will be logged on the standard Read more…

Remote debug spring boot

A short guide that briefly explain how to remote debug using visual studio code in a spring boot project gradle based. Spring configuration Open your spring project, detect the build.gradle file and edit as follow add to “jvmArgs” the JDWP configuration passing the address properly (it is possible also to Read more…