protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
//static resources configuration
.antMatchers("/resources/**", "/webjars/**", "/img/**").permitAll()
//login page and registration end-point
.antMatchers("/login", "/registration").permitAll()
//all other requests
.anyRequest().authenticated()
.and()
// login form configuration
.formLogin()
.loginPage("/login")
.failureUrl("/login?error")
.defaultSuccessUrl("/", true)
.permitAll()
.and()
//logout configuration
.logout()
.logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.logoutSuccessUrl("/login");
}
INTO words (baseWord
serverVersion
translatedList
transcription
partOfSpeech
examples
image
synonims
categoryId) девятьSELECT baseWord
serverVersion
translatedList
transcription
partOfSpeech
examples
image
synonims
@echo OFF
SETLOCAL ENABLEDELAYEDEXPANSION
set RESULT=
call :accum 1
call :accum 2
call :accum 3
echo RESULT=!RESULT!
set RESULT=
for %%. in (13 14 15) do (
call :accum %%.
)
echo RESULT=!RESULT!
set RESULT=
for /L %%. in (1,1,3) do (
set /a randomIndex=!random! %% 15 + 1
call :accum !randomIndex!
)
echo RESULT=!RESULT!
goto :EOF
:accum
set VAR=%~1
set "RESULT=!RESULT! !VAR!"
goto :EOFaccum2.cmdRESULT= 1 2 3
RESULT= 13 14 15
RESULT= 9 5 8