-01 towering building a stage, the primary foundation - Chapter 3 User Login Register User Registration module development -3-5 - Create a user controller and test

On one, create a user's service methods have written a whole

Achieve the creation of the user interface

Objects to pass over the front reception UserBO, use @RquestBody


fight against BO objects do verification, user name, password, confirm the password. Check not only be done in the preceding paragraph, but also to do it in the back end.



Execute maven install

Start api service

test





Pass an empty object in the past.

Into a post request



to modify the correct password



will have a value in the database.





User interface to complete registration
 

End



 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12080830.html