springBoot入门教程之value和configurationProperties区别

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41650354/article/details/84930303

@Component将person值加载到容器中

以前

<bean class="Person">

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

</bean>

扫描二维码关注公众号,回复: 4622270 查看本文章

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

猜你喜欢

转载自blog.csdn.net/qq_41650354/article/details/84930303