Code not working : autowiring problem