find src/main/resources/
th:href="@{/css/core.css}"
<img th:src="@{/images/icon.png}"/>
src/main/resources/static/css/core.css
src/main/resources/static/images/icons.png
private static final String projectPath = System.getProperty("user.dir")
.replaceAll("\\\\", "/");
registry.addResourceHandler("/images/**")
.addResourceLocations("classpath:/static/images/", String.format(
"file:///%s/src/main/resources/static/images/", projectPath));
"classpath:/static/images/"
String.format("file:///%s/src/main/resources/static/images/", projectPath)
это один и тот же путь@echo OFF
setlocal enabledelayedexpansion
set INITIAL_COUNTER=1000
if not exist example!INITIAL_COUNTER!.txt copy NUL example!INITIAL_COUNTER!.txt > NUL
REM only works until overlow:
REM fails to sort the example10000.txt after example9999.txt
for /F %%. in ('DIR /b example*.txt ^| sort /R') do call :XXX %%. && goto EOF
:XXX
set COUNTER=%1
set COUNTER=!COUNTER:example=!
set COUNTER=!COUNTER:.txt=!
set /A COUNTER=!COUNTER! + 1
copy NUL example!COUNTER!.txt > NUL
echo !COUNTER!
exit /b 0
goto :EOF
:EOF
CDPClient.sendMessage(
MessageBuilder.buildGeoLocationMessage(id, 37.422290, -122.084057));
// под капотом
method = "Emulation.setGeolocationOverride";
params = new HashMap<>();
params.put("latitude", latitude);
params.put("longitude", longitude);
params.put("accuracy", 100);
if (debug) {
System.err.println(String.format(
"Sending:\n{\"id\":%s,\"method\":\"Emulation.setGeolocationOverride\","
+ "\"params\":{\"latitude\":%s,\"longitude\":%s,\"accuracy\":100}}",
id, latitude, longitude));
}
// google HQ
sleep(3);
URL = "https://www.google.com.sg/maps";
driver.navigate().to(URL);
driver.findElement(By.cssSelector(
"div[class *='widget-mylocation-button-icon-common']"), 120)
.click();
sleep(10);
takeScreenShot();
}
в году 3600×24×365 = 31536000
000000-000000-000000-000000-000000-000000-000000-000000 это 48 позиций
10 ^48 секунд это 10^40 лет