警告: Exception encountered during contextinitialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name'dataSource' defined in class path resource [applicationContext.xml]: Errorsetting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'jdbcUrl' of beanclass [com.alibaba.druid.pool.DruidDataSource]: Bean property 'jdbcUrl' is notwritable or has an invalid setter method. Does the parameter type of the settermatch the return type of the getter?
严重: Caught exception while allowingTestExecutionListener[org.springframewor[email protected]2adb1d4]to prepare test instance [[email protected]]
java.lang.IllegalStateException : Failed to load ApplicationContext
您好,初步判断applicationContext.xml中的jdbcUrl要与上面的数据池dataSource.class中定义的相应的数据链接名称没有一一对应。请检查。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。