springEL和资源调用

本文使用spring 表达式语言实现资源的注入; spring 主要在注解@Value的参数中使用表达式; 项目结构如图所示: 1)test.properties文件中的内容如下: book.name = san guo yan yi book.author = luo guan zhong 2)test.txt中的内容随便写 3)FunctionService中的代码如下: import org
相关文章
相关标签/搜索