You can build a custom skill for Alexa by extending a servlet that accepts requests from and sends responses to the Alexa service in the cloud.
This project will walk through how to build an Alexa Skill with Spring Boot and Http Servlet mapping examples.