migrate to spring 4.
add dao layer.