---
title: "spring anotation中的schema添加"
author: "tree3170"
date: "2011-04-18T09:38:16Z"
tags: []
categories: ["企业架构"]
slug: "spring-anotation-schema"
draft: false
lastmod: "2011-04-18T09:38:16Z"
id: 1006002
url: "https://tree3170.iteye.com/blog/1006002"
---

1.首先Windows-->preferences-->myeclipse--files and editors -->xml-->xml catalog 
2.单击add出现的窗口中的Key Type 中选择URI 在location中选择FileSystem然后在spring的解压目录的dist/resources目录中选择spring-context-2.5.xsd3.回到设置窗口,把窗口中的KeyType改为Schema Location 
4.Key的后边加上spring-context-2.5.xsd
5.完成