forked from chenjiangtao/veryjava.spring.boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVeryJavaProperties.java
More file actions
67 lines (53 loc) · 1.13 KB
/
Copy pathVeryJavaProperties.java
File metadata and controls
67 lines (53 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package cn.veryjava;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.validation.constraints.NotNull;
/**
* 描述: TODO:
* 包名: cn.veryjava.
* 作者: barton.
* 日期: 16-10-28.
* 项目名称: veryjava.spring.boot
* 版本: 1.0
* JDK: since 1.8
*/
@Component
@ConfigurationProperties(prefix = "veryjava")
public class VeryJavaProperties {
private String name;
private String age;
private String object;
private My my;
@NotNull
private String position;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getObject() {
return object;
}
public void setObject(String object) {
this.object = object;
}
public My getMy() {
return my;
}
public void setMy(My my) {
this.my = my;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
}