spring security adaption and updated build compiler version to 1.7