28
loading...
This website collects cookies to deliver better user experience
public Weather getWeather(Double lat, Double lon) {
return webClient.get()
.uri(uri -> uri.path("/")
.queryParam("lat", lat.toString())
.queryParam("lon", lon.toString())
.queryParam("units", "metric")
.queryParam("apiKey", apiKey)
.build())
.retrieve()
.toEntity(Weather.class)
.block()
.getBody();
}
public Weather getWeather(Double lat, Double lon) {
return webClient.get()
.uri(uri -> uri.path("/").queryParam("lat", lat.toString()).queryParam("lon", lon.toString())
.queryParam("units", "metric").queryParam("apiKey", apiKey).build())
.retrieve().toEntity(Weather.class).block().getBody();
}
Preferences > Java > Code Style > Formatter
. ~/.vscode/eclipse-java-google-style.xml
. org.eclipse.jdt.core.formatter.join_wrapped_lines
property, and set its value to false
. Add the property if you don't have it.<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/>
settings.json
) and add the following line (remember to update the path):"java.format.settings.url": "~/.vscode/eclipse-java-google-style.xml",