server.xml中的配置
maxIdle="10" maxWait="-1"
name="jdbc/ifcp" password="123"
type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/XXX?charactorEncoding=utf8"
username="root"
removeAbondoned="true"
/>
其中XXX是你的项目路径
web.xml好像不用特别的配置吧。如果需要可以加入下面的