严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/spring-mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'driver' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property 'driver' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.alibaba.druid.support.spring.stat.DruidStatInterceptor] for bean with name 'druid-stat-interceptor' defined in ServletContext resource [/WEB-INF/spring/spring-mybatis.xml]; nested exception is java.lang.ClassNotFoundException: com.alibaba.druid.support.spring.stat.DruidStatInterceptor
ssm+maven报错,高手帮帮忙
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
5条回答 默认 最新
- 丹顶鹤是码农 2017-05-18 11:54关注
据我所知,ComboPooledDataSource这个类里面没有driver属性,只有driverClass属性,所以你的数据库配置文件错了!应该是这样才对
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报