项目背景:
springboot、c3p0、配置数据源
现象:
启动报错
报错日志:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration
G
e
n
e
r
i
c
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
j
a
v
a
x
.
s
q
l
.
D
a
t
a
S
o
u
r
c
e
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
d
a
t
a
S
o
u
r
c
e
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
j
d
b
c
.
U
n
s
u
p
p
o
r
t
e
d
D
a
t
a
S
o
u
r
c
e
P
r
o
p
e
r
t
y
E
x
c
e
p
t
i
o
n
:
U
n
a
b
l
e
t
o
f
i
n
d
s
u
i
t
a
b
l
e
m
e
t
h
o
d
f
o
r
u
r
l
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
C
o
n
s
t
r
u
c
t
o
r
R
e
s
o
l
v
e
r
.
i
n
s
t
a
n
t
i
a
t
e
(
C
o
n
s
t
r
u
c
t
o
r
R
e
s
o
l
v
e
r
.
j
a
v
a
:
658
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.3.13.
j
a
r
:
5.3.13
]
a
t
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
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
A
u
t
o
w
i
r
e
C
a
p
a
b
l
e
B
e
a
n
F
a
c
t
o
r
y
.
d
o
C
r
e
a
t
e
B
e
a
n
(
A
b
s
t
r
a
c
t
A
u
t
o
w
i
r
e
C
a
p
a
b
l
e
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
582
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.3.13.
j
a
r
:
5.3.13
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
A
u
t
o
w
i
r
e
C
a
p
a
b
l
e
B
e
a
n
F
a
c
t
o
r
y
.
c
r
e
a
t
e
B
e
a
n
(
A
b
s
t
r
a
c
t
A
u
t
o
w
i
r
e
C
a
p
a
b
l
e
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
542
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.3.13.
j
a
r
:
5.3.13
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
l
a
m
b
d
a
Generic.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.jdbc.UnsupportedDataSourcePropertyException: Unable to find suitable method for url at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda
Generic.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[javax.sql.DataSource]:Factorymethod′dataSource′threwexception;nestedexceptionisorg.springframework.boot.jdbc.UnsupportedDataSourcePropertyException:Unabletofindsuitablemethodforurlatorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractBeanFactory.lambdado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t
r
u
c
t
o
r
R
e
s
o
l
v
e
r
.
j
a
v
a
:
653
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.3.13.
j
a
r
:
5.3.13
]
.
.
.
24
c
o
m
m
o
n
f
r
a
m
e
s
o
m
i
t
t
e
d
C
a
u
s
e
d
b
y
:
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
j
d
b
c
.
U
n
s
u
p
p
o
r
t
e
d
D
a
t
a
S
o
u
r
c
e
P
r
o
p
e
r
t
y
E
x
c
e
p
t
i
o
n
:
U
n
a
b
l
e
t
o
f
i
n
d
s
u
i
t
a
b
l
e
m
e
t
h
o
d
f
o
r
u
r
l
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
j
d
b
c
.
U
n
s
u
p
p
o
r
t
e
d
D
a
t
a
S
o
u
r
c
e
P
r
o
p
e
r
t
y
E
x
c
e
p
t
i
o
n
.
t
h
r
o
w
I
f
(
U
n
s
u
p
p
o
r
t
e
d
D
a
t
a
S
o
u
r
c
e
P
r
o
p
e
r
t
y
E
x
c
e
p
t
i
o
n
.
j
a
v
a
:
36
)
[
s
p
r
i
n
g
−
b
o
o
t
−
2.6.0.
j
a
r
:
2.6.0
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
j
d
b
c
.
D
a
t
a
S
o
u
r
c
e
B
u
i
l
d
e
r
0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.13.jar:5.3.13] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.13.jar:5.3.13] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) [spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) [spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) [spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) [spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1290) [spring-boot-2.6.0.jar:2.6.0] at com.jkit.crm.CrmApplication.main(CrmApplication.java:10) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_281] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_281] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_281] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_281] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.6.0.jar:2.6.0] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.jdbc.UnsupportedDataSourcePropertyException: Unable to find suitable method for url at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.13.jar:5.3.13] ... 24 common frames omitted Caused by: org.springframework.boot.jdbc.UnsupportedDataSourcePropertyException: Unable to find suitable method for url at org.springframework.boot.jdbc.UnsupportedDataSourcePropertyException.throwIf(UnsupportedDataSourcePropertyException.java:36) ~[spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.jdbc.DataSourceBuilder
0(AbstractBeanFactory.java:335) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) [spring−context−5.3.13.jar:5.3.13]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) [spring−context−5.3.13.jar:5.3.13]atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) [spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:730)[spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)[spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:302)[spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1301)[spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1290)[spring−boot−2.6.0.jar:2.6.0]atcom.jkit.crm.CrmApplication.main(CrmApplication.java:10)[classes/:na]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) [na:1.8.0281]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [na:1.8.0281]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0281]atjava.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0281]atorg.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[spring−boot−devtools−2.6.0.jar:2.6.0]Causedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[javax.sql.DataSource]:Factorymethod′dataSource′threwexception;nestedexceptionisorg.springframework.boot.jdbc.UnsupportedDataSourcePropertyException:Unabletofindsuitablemethodforurlatorg.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) [spring−beans−5.3.13.jar:5.3.13]atorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) [spring−beans−5.3.13.jar:5.3.13]...24commonframesomittedCausedby:org.springframework.boot.jdbc.UnsupportedDataSourcePropertyException:Unabletofindsuitablemethodforurlatorg.springframework.boot.jdbc.UnsupportedDataSourcePropertyException.throwIf(UnsupportedDataSourcePropertyException.java:36) [spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.jdbc.DataSourceBuilderReflectionDataSourceProperties.getMethod(DataSourceBuilder.java:561) ~[spring-boot-2.6.0.jar:2.6.0]
at org.springframework.boot.jdbc.DataSourceBuilder
R
e
f
l
e
c
t
i
o
n
D
a
t
a
S
o
u
r
c
e
P
r
o
p
e
r
t
i
e
s
.
s
e
t
(
D
a
t
a
S
o
u
r
c
e
B
u
i
l
d
e
r
.
j
a
v
a
:
543
)
[
s
p
r
i
n
g
−
b
o
o
t
−
2.6.0.
j
a
r
:
2.6.0
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
j
d
b
c
.
D
a
t
a
S
o
u
r
c
e
B
u
i
l
d
e
r
.
b
u
i
l
d
(
D
a
t
a
S
o
u
r
c
e
B
u
i
l
d
e
r
.
j
a
v
a
:
181
)
[
s
p
r
i
n
g
−
b
o
o
t
−
2.6.0.
j
a
r
:
2.6.0
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
j
d
b
c
.
D
a
t
a
S
o
u
r
c
e
C
o
n
f
i
g
u
r
a
t
i
o
n
ReflectionDataSourceProperties.set(DataSourceBuilder.java:543) ~[spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.jdbc.DataSourceBuilder.build(DataSourceBuilder.java:181) ~[spring-boot-2.6.0.jar:2.6.0] at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration
ReflectionDataSourceProperties.set(DataSourceBuilder.java:543) [spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.jdbc.DataSourceBuilder.build(DataSourceBuilder.java:181) [spring−boot−2.6.0.jar:2.6.0]atorg.springframework.boot.autoconfigure.jdbc.DataSourceConfigurationGeneric.dataSource(DataSourceConfiguration.java:150) ~[spring-boot-autoconfigure-2.6.0.jar:2.6.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_281]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_281]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_281]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_281]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.13.jar:5.3.13]
… 25 common frames omitted
本人解决办法
springboot版本从2.6降为2.4解决



