Fix issues with @DB support in Spring environment