complete app implementation for spring security