How to Handle Trailing Slashes in Spring Boot
Introduction Two types of slashes exist, the backward slash and the forward slash. A good way to differentiate the two is that a backward slash leans backward(), while a forward slash leans forward(/) The slash we want to handle in Spring Boot is the forward slash. We want to handle trailing forward slash at the end of an API endpoint. The problem When you send a request to this API endpoint api/users/add it will return a state code of 200, but when you send a request to this API endpoint api/users/add/ it will return a status code of 404....