/spring-5-flyway-wiremock-data-jdbc-example

An example project setup ready to be used with the following libraries: junit 5, flyway, wiremock, spring data jdbc

Primary LanguageJava

Spring Boot 2 + Spring 5 + Flyway + Wiremock + Data JDBC

A simple webapp which connects to the openweathermap to retrieve weather data. You can get an API key from the website.

How to run

Add your own api key.

mvnw spring-boot:run -Dspring-boot.run.arguments=--weather-api.appid=xxxxxxxxxxxxxx

Get weather by city name

Execute GET request to retrieve city weather data:

http://localhost:8080/weather?city=Amsterdam