Aggregator Service: Example of using feign with eureka Cross-Origin Resource Sharing (CORS) enabled.
- Aggregator
- Aggregator 2
# gradle aggregator:installShadow
gradle aggregator:buildAssumes eureka is running on http://localhost:8761
Start mybatis service.
# skip -- tests not working yet
gradle aggregator:bootRun
# java -jar aggregator/build/libs/aggregator-0.1.0-SNAPSHOT.jarverify it is functioning at http://localhost:8083
You should see MyBatis: mybatis:myhostname:8083
gradle aggregator:bootRunverify it is functioning at http://localhost:8085
You should see MyBatis: mybatis:myhostname:8083
Start mybatis service on port 8084
gradle 8084 mybatis:bootRun
# java -jar mybatis/build/libs/mybatis-0.1.0-SNAPSHOT.jar --server.port=8084Go back to http://localhost:8085 and you should see both ports 8083 and 8085 in the output after a minute or two as you keep refreshing.
http://localhost:8085/ http://localhost:8085/home http://localhost:8085/members