花费 15 ms
Spring加载properties文件的两种方式

在项目中如果有些参数经常需要修改,或者后期可能需要修改,那我们最好把这些参数放到properties文件中,源代码中读取properties里面的配置,这样后期只需要改动properties ...

Thu Aug 25 23:04:00 CST 2016 0 21364
关于spring中写法

1.通配符形式<context:component-scan base-package="com.*" /> 2.全路径 <context:component-scan base ...

Wed Aug 17 02:15:00 CST 2016 0 2375

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM