@Component将person值加载到容器中

以前

<bean class="Person">

    <property name = "name"  value = "字面量/${key} 从环境变量中获取值"></property>

</bean>

 

springBoot入门教程之value和configurationProperties区别

 

 

springBoot入门教程之value和configurationProperties区别

 

springBoot入门教程之value和configurationProperties区别

 

@Validated  校验 ---------------类上注释      方法名上@Emil

springBoot入门教程之value和configurationProperties区别

springBoot入门教程之value和configurationProperties区别

相关文章: