Search code examples
intellij-ideaannotationsjavabeans

Why can't IntelliJ IDEA resolve destroyMethod="close"?


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".


Solution

  • Because class DataSource does not have a method close.