[Spirng]4.c命名空间和p命名空间
摘自官网:https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-p-namespace
p命名空间
p命名空间可以使用bean的属性,而不是嵌套的property来进行注入。优化了set注入。
注意添加 xmlns:p="http://www.springframework.org/schema/p"
c命名空间
c命名空间用于优化构造器注入
注意添加 xmlns:c="http://www.springframework.org/schema/c"