spring endpoint configuration