qq_32763435
qq_32763435
2015-11-17 01:37

难道这类问题的出现就我一个人?

  • spring
  • druid
  • mybatis

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [spring-mybatis.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Cannot resolve reference to bean 'druidDataSource' while setting bean property 'druidDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'druidDataSource' defined in class path resource [spring-mybatis.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 'initialSize'; nested exception is java.lang.NumberFormatException: For input string: "${druid.initialSize}"

当我删除除(ClassName,url,pass,name)以外的配置时,报初始化错误- dataSource init error。该怎么解决?

关于连接池的配置基本是没有问题的。



之前用DBCP的连接池,总是显示找不到${driver}。。

求求大神 帮看看是为什么。
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换