< Context path ="/mldn" docBase ="E:/web.workspace/mldndemo/WebContent" reloadable ="true" > < Resource name ="jdbc/mldn" auth ="Container" type ="javax.sql.DataSource" maxActive ="100" maxIdle ="30" maxWait ="10000" username ="root" password ="1234567890" driverClassName ="org.gjt.mm.mysql.Driver" url ="jdbc:mysql://localhost:3306/mldn?useUnicode=true&characterEncoding=GBK" /> </ Context >
这样的话,启动或者关闭tomcat都会报错,在eclipse的话,还可能出现无法创建新的tomcat server的现象,
选择clean server报错:
启动的时候出错
改成这样就好了
< Context path ="/mldn" docBase ="E:/web.workspace/mldndemo/WebContent" reloadable ="true" > < Resource name ="jdbc/mldn" auth ="Container" type ="javax.sql.DataSource" maxActive ="100" maxIdle ="30" maxWait ="10000" username ="root" password ="1234567890" driverClassName ="org.gjt.mm.mysql.Driver" url ="jdbc:mysql://localhost:3306/mldn" /> </ Context >