Java based Spring configuration