Spring 4 supports bean configuration using Groovy.
You can define your beans using beans
closure and it looks cleaner than xml. Moreover you can add flexible logic because it is a Groovy script.
My question is:
Is it possible to make IntelliJ IDEA understand such bean declarations? The problem is that when I use @Autowired
, IDE says:
Could not autowire
Because it does not understand Groovy beans.
And by the way is it a good approach to use Groovy configuration for Spring? I did not notice people use it much in their projects even though i found them more convenient than XML.