Implemented velocity api and fixed spring config