在MyEclipse中为什么在第一次运行时没有错误,再次运行就出现了下面的错误

Error creating bean with name 'mapperScanner' defined in class path resource [application-context.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [application-context.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [application-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'maxActive'; nested exception is java.lang.NumberFormatException: For input string: "${dbcp.maxActive}"


[application-context.xml]: 文件内容配置错误: 

Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'maxActive'; nested exception is java.lang.NumberFormatException: For input string: "${dbcp.maxActive}"

温馨提示:内容为网友见解,仅供参考
第1个回答  2014-10-22
把项目右键--> build path 贴出来看看
相似回答