support JavaWeb (can't auto configure as simple spring)