---
title: "context配置"
author: "tomEnjoy"
date: "2011-02-22T23:28:19Z"
tags: []
categories: ["企业架构"]
slug: "context"
draft: false
lastmod: "2011-02-22T23:28:19Z"
id: 918879
url: "https://tomenjoy.iteye.com/blog/918879"
---

```xml
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
    <Context path="/mis2011">
	<Loader delegate="true" />
	<Resource name="mis2011" auth="Container" type="javax.sql.DataSource"
		username="root"
		password=""
		driverClassName="com.mysql.jdbc.Driver"
		url="jdbc:mysql://localhost:3306/..."
		maxActive="30"
		maxIdle="5"
		maxWait="50"
		minEvictableIdleTimeMillis="4000"
		timeBetweenEvictionRunsMillis="5000"
	/>
    </Context>
</host>
```