I'm looking to add destroy-method = "close"
to a bean, but IDEA 14 doesn't seem to like it. Anyone know why?
Also tried "shutdown"
.
I'm looking to add destroy-method = "close"
to a bean, but IDEA 14 doesn't seem to like it. Anyone know why?
Also tried "shutdown"
.
Because class DataSource
does not have a method close
.
Try implementing the following line of code.
@Bean(destroyMethod="shutdown")