rewrite to merge the kmodule and spring xml