I've deployed a Spring Boot application on AWS. This application contains Spring REST APIs that allow an front-end application to retrieve data.
Say I want to make an request to an API, such as
https://example.com/api/states/search/findByCountryCode?code=US
The entire query string (the question mark and everything after) is dropped.
https://example.com/api/states/search/findByCountryCode
Therefore, instead of returning results from the database, I'm returned an empty result set.
What could be the cause of this, and I do I fix it?
Note: I set up a CloudFront distribution in front of my application's Elastic Beanstalk environment, so I don't know if that has something to do with it...