1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package org.springblade.core.http.test;
|
| import lombok.Getter;
| import lombok.Setter;
| import org.springblade.core.http.CssQuery;
| import org.springframework.format.annotation.DateTimeFormat;
|
| import java.util.Date;
|
| @Setter
| @Getter
| public class VNews {
|
| @CssQuery(value = "a", attr = "title")
| private String title;
|
| @CssQuery(value = "a", attr = "href")
| private String href;
|
| @CssQuery(value = ".news-date", attr = "text")
| @DateTimeFormat(pattern = "MM/dd")
| private Date date;
|
| }
|
|