摘要:
9.@PropertySource 加载配置文件 在xml中 我们加载property配置文件,是使用 <context:property-placeholder location="classpath:spring-common.xml"/> 同样,使用注解的方式也同样可以完成 @Property 阅读全文
posted @ 2019-07-08 10:19
哈哈丶丶
阅读(239)
评论(0)
推荐(1)
摘要:
记录常用的spring注解 1.@Configuration 和 @Bean spring中可以使用xml 的方式进行配置, 也可以使用 @ Configuration 来指定一个类为配置类, 并使用 @Bean 来对spring容器进行注入.方法名即是id @Configuration //声明这 阅读全文
posted @ 2019-07-08 10:14
哈哈丶丶
阅读(2275)
评论(2)
推荐(1)

浙公网安备 33010602011771号