Messing around with Spotify's Apollo lib, just sharing some working examples
Build with mvn package
Run with java -jar target/apollo-practice.jar -Dhttp.server.port=8080
cURL with curl http:/localhost:8080
Going off of the Quickstart, you may
run into an issue with the SLF4J dependency (details here). You can resolve this by adding the dependency to your pom.xml
:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
</dependency>