netstat -antp
@Autowired
protected void configureGlobal(AuthenticationManagerBuilder auth)
throws Exception {
auth.userDetailsService(userService).passwordEncoder(userService.bCryptPasswordEncoder());
}
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class Example {
public static void main(String args[]) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MMMM-yyyy HH:mm");
LocalDateTime localDateTime = LocalDateTime.parse("06.12.2021 23:43", formatter);
}
}
javac Example.java
java Example
Exception in thread "main" java.time.format.DateTimeParseException: Text '06.12.2021 23:43' could not be parsed at index 2
at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
at java.time.LocalDateTime.parse(LocalDateTime.java:492)
$data = @{
'username' = $env:USERNAME;
'pid' = $processid;
'parent' = $parentprocessname;
'message' = 'test';
'invoked' = $date;
}
...
out-file -encoding ascii -filepath 'result.txt' -append -InputObject $data
когда зависимость в нестандартном месте
если помогло - отметьте решением