您的位置: 首页 > 文章 > Spring注解驱动开发-part3属性赋值 Spring注解驱动开发-part3属性赋值 分类: 文章 • 2024-09-15 16:18:10 使用@Value为属性赋值 ·1.写基本数值 2.写SpEL表达式:#{} 3.写${},取出配置文件【properties】中的值 a.写prop文件 b.xml文件配置 c.配置类使用@PropertySource注解 d.bean的属性使用@Value注解 这个好麻烦啊~!????