modify rest app,but errors happened, seems the issue of registratin app