@Validated
import org.springframework.validation.annotation.Validated;
public class Book {
@Id
private String id;
@NotNull(message = "123")
@NotEmpty(message = "456")
private String isbn;
...
curl -XPOST http://localhost:8080/book/add -d "{}" -H "Content-type:application/json
[Field error in object 'book' on field 'isbn': rejected value [null]; codes [NotNull.book.isbn,NotNull.isbn,NotNull.java.lang.String,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes
[book.isbn,isbn]; arguments [];
default message [isbn]]; default message [123]]
with py7zr.SevenZipFile('target.7z', 'w', password='secret') as archive:
archive.writeall('/path/to/base_dir', 'base')
package.Class.value = some data
iframe = wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.cssSelector("...")));
element = iframe.findElement(By.cssSelector("...));
....
driver.switchTo().defaultContent();