Git Product home page Git Product logo

letsdo_phase_i's Introduction

Readme

我在github上备份了这个项目,并且使用travis持续集成

18/3/17

实现了注册用户的demo

后端要做的: 把model绑定一个id,传给view,这样前端才能将用户的输入填进model返回给后端。 看UserController的visitRegisterPage方法,通过model.addAttribute把“user”这个id和User对象绑定在一起,然后返回相应的view。

前端要做的: 参见addUser.html。使用thymeleaf的命名空间(line2),创建表单,把这个表单与id为“user”的对象绑定,同时把表单和url为/user/register的post方法绑定(line9), 接下来就是把输入框和对象的属性一一对应即可。 当表单提交时,后端可以通过@ModelAttribute取得前端传回的对象。

这只是个demo,因此前端要做的就是学习thymeleaf,重写register页面。后端也要把相应的get方法改好。

letsdo_phase_i's People

Contributors

qianyc avatar blumonilr avatar pufferfist avatar kate199824 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.