generate spring controller and dao code