---
title: "Spring中的资源文件(.properties)管理类"
author: "ozzzo"
date: "2009-08-11T17:21:00Z"
tags: ["Spring", "XML", "配置管理"]
slug: "spring-properties"
draft: false
lastmod: "2009-08-11T17:22:12Z"
id: 444885
url: "https://ozzzo.iteye.com/blog/444885"
---

在spring的配置文件中加入 \[code="xml"] classpath:oracle10g.properties \[/code] oracle10g.properties为src目录下的一个配置文件 在需要引入的地方直接写${properties文件中的key值} 例如: \[code="xml"] \[/code] 可以让spring中的配置文件看起来简洁.