1

I'm looking to add destroy-method = "close" to a bean, but IDEA 14 doesn't seem to like it. Anyone know why?

enter image description here

enter image description here

Also tried "shutdown".

riddle_me_this
  • 8,575
  • 10
  • 55
  • 80

2 Answers2

3

Because class DataSource does not have a method close.

Meo
  • 12,020
  • 7
  • 45
  • 52
1

Try implementing the following line of code.

@Bean(destroyMethod="shutdown")
minTwin
  • 1,181
  • 2
  • 21
  • 35