Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Yangkai.Shen a88c88ac0a | 7 years ago | |
---|---|---|
.. | ||
src | 7 years ago | |
README.md | 7 years ago | |
pom.xml | 7 years ago |
server:
port: 8080
context-path: /demo
application:
name: spring-boot-demo-properties
version: 0.0.1-SNAPSHOT
author:
name: xkcoding
website: xkcoding.com
qq: 237497819
phone-number: 18601224166
@Component
@Data
public class ApplicationConfig {
@Value("${application.name}")
private String name;
@Value("${application.version}")
private String version;
}
@Data
@ConfigurationProperties(prefix = "application.author")
@Component
public class AuthorConfig {
private String name;
private String website;
private String qq;
private String phoneNumber;
}
一个用来深度学习并实战 spring boot 的项目,目前总共包含 66 个集成demo,已经完成 55 个。
Java SVG CSS JavaScript SQL other