Maven方式创建Spring工程
什么是Maven
https://www.cnblogs.com/whgk/p/7112560.html
依赖引入
Maven 中央仓库
地址 https://mvnrepository.com/
使用国内镜像
创建一个maven的配置文件
参照:
http://maven.apache.org/settings.html
在Intelij IDEA中修改maven源为国内(阿里)镜像
参考:https://blog.csdn.net/qq_39929929/article/details/103753905
Pom.xml
```xml
<!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.1.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.1.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.1.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.9</version>
</dependency>
# 空值注入
## Value标签
标识空值 或空字符串 “”
```xml
<property name="name"><value></value></property>
<property name="name"><null></null></property>