配置连接池获取链接时报错
数据源没发现! Name [jdbc/mysql5] is not bound in this Context. Unable to find [jdbc].
之前在配置过tomcat的连接池,以为就此万事大吉.
原来每个web项目的Context中都要配置一下.
还有,一定要在eclipse里配置tomcat的context.xml和server.xml,因为每次从eclipse启动tomcat,eclipse中的配置文件都会覆盖tomcat原有的配置文件.