Sometimes can be useful extract some specific attribute from a JSON string. This can be done easily with com.google.code.gson library in this way. Let’s consider the following JSON: This is the maven dependancy: And finally the code to extract the value of “field2”:

Read More →

If you find you are repeatedly using the same attributes with @Transactional on many different methods, then Spring’s meta-annotation support allows you to define custom shortcut annotations for your specific use cases. For example, defining the following annotations: allows us to write the example from the previous section as As you can see meta-annotations can […]

Read More →