Month: July 2014

How to return different HttpStatus codes using Spring

Any Java Enterprise Application that manipulates responses will need to return status codes depending on the execution of the code. So, here is one of the easiest ways to return a status code without the classical numbers like 200, 404, 400, etc. // This method returns HttpStatus.OK (200) in case a wiki page exists, or […]

Read More

Some useful Git commands

Hi friends, Today I would like to share you a list of Git commands that I consider really useful when we work with this great version control  system. Enjoy it! Configuring your Git // Disable autocrlf to avoid warnings in command line git config –global core.autocrlf false // Set username and email (global) git config […]

Read More