You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@EnableSnoopEEClient(serviceName = "temperature")
@ApplicationPath("/weather")
public class WeatherMicroService extends Application {
}
*/
@Path("/temperature")
public class TemperatureResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response getAverageTemperature() {
Temperature temperature = new Temperature();
temperature.setTemperature(35D);
temperature.setTemperatureScale(TemperatureScale.CELSIUS);
return Response.ok(temperature).build();
}
}
public class Temperature {
private Double temperature;
private TemperatureScale temperatureScale;
public Double getTemperature() {
return temperature;
}
public void setTemperature(Double temperature) {
this.temperature = temperature;
}
public TemperatureScale getTemperatureScale() {
return temperatureScale;
}
public void setTemperatureScale(TemperatureScale temperatureScale) {
this.temperatureScale = temperatureScale;
}
@Override
public String toString() {
return "Temperature{" +
"temperature=" + temperature +
", temperatureScale=" + temperatureScale +
'}';
}
}
Getting Handshake error while registering service.
snoopee.yml
Using Docker for Mac & Pulling SnoopEE first with:
Executing it with:
The text was updated successfully, but these errors were encountered: