当前位置: 首页 > news >正文

wordpress网站基础知识电子商务网站建设与维护方法分析不包括

wordpress网站基础知识,电子商务网站建设与维护方法分析不包括,织梦 网站根目录,如何建立一个网站 供客户选图有点难理解。 修饰方法是表示在该控制器的所有目标方法执行前都执行该modelattribute注解的方法。 修饰参数是表示什么#xff1f;修饰参数时modelattributes(valuexxxx) User user 中的value值需要和modelattribute修改的方法加入的键的值一致。 Controller Cod…有点难理解。 修饰方法是表示在该控制器的所有目标方法执行前都执行该modelattribute注解的方法。 修饰参数是表示什么修饰参数时modelattributes(valuexxxx) User user  中的value值需要和modelattribute修改的方法加入的键的值一致。   Controller Code: package com.tiekui.springmvc.handlers;import java.util.Map;import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam;import com.tiekui.springmvc.pojo.Address; import com.tiekui.springmvc.pojo.User; import com.tiekui.springmvc.pojo.UserNew;Controller public class ModelAttributes {RequestMapping(testModelAttribute)public String targetMethod(UserNew user){System.out.println(Target method user);return afterModelAttributes;}ModelAttributepublic void getuser(RequestParam(valueid) String id,MapString, UserNew map) {if ((id ! null)) {UserNew user new UserNew(tiekui,1234,zhoutiekuihuawei.com,30,1, new Address(guangzhou, zhenzhen));System.out.println(Get an object user);map.put(userNew, user);}} }   Response View: % page languagejava contentTypetext/html; charsetISO-8859-1pageEncodingISO-8859-1% !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd html head meta http-equivContent-Type contenttext/html; charsetISO-8859-1 titleInsert title here/title /head bodyuserAge: ${requestScope.userNew.age}/body /html   View: form actiontestModelAttributebrpassword : input typetext nameusername valuetiekuibrpassword : input typepassword namepassword value1234bremail : input typetext nameemail valuezhoutiekuihuawei.combrage : input typetext nameage value18brinput typehidden nameid value1brAddress Province: input typetext nameaddress.province valueguangzhoubrAddress City: input typetext nameaddress.city valueshenzhenbrinput typesubmit valueTest ModelAttributes/form   POJO userNew: package com.tiekui.springmvc.pojo;public class UserNew {private String username;private String password;private String email;private int age;private Integer id;public UserNew(String username, String password, String email, int age, Integer id, Address address) {super();this.username username;this.password password;this.email email;this.age age;this.id id;this.address address;}public Integer getId() {return id;}public void setId(Integer id) {this.id id;}private Address address;public String getUsername() {return username;}public void setUsername(String username) {this.username username;}public String getPassword() {return password;}public void setPassword(String password) {this.password password;}public String getEmail() {return email;}public void setEmail(String email) {this.email email;}public int getAge() {return age;}public void setAge(int age) {this.age age;}public Address getAddress() {return address;}public void setAddress(Address address) {this.address address;}Overridepublic String toString() {return UserNew [username username , password password , email email , age age , id id , address address ];}} View Code  POJO Address: package com.tiekui.springmvc.pojo;public class Address {private String province;private String city;public Address() {super();}public Address(String province, String city) {super();this.province province;this.city city;}Overridepublic String toString() {return Address [province province , city city ];}public String getProvince() {return province;}public void setProvince(String province) {this.province province;}public String getCity() {return city;}public void setCity(String city) {this.city city;} }  转载于:https://www.cnblogs.com/zhoutiekui/p/6351254.html
http://www.yutouwan.com/news/352002/

相关文章:

  • 做网站的法律软件开发公司深圳
  • 网站建设软件如何建设交流网站的论文
  • 编程 毕业设计代做网站喂来苏州网络科技有限公司
  • 做一个商务平台网站的费用上海闵行区 网站建设
  • 大型o2o网站开发时间wordpress jquery cdn
  • 张家界做网站零基础月做网站多久
  • 备案域名出售平台张北网站seo
  • WordPress网站积分系统自由人网站开发
  • 安徽网站建站系统哪家好帝国网站如何做中英文切换
  • wordpress 公众账号seo自学教程推荐
  • 南通哪里学网站建设河北邯郸seo网站建设网站优化
  • 网站开发 asp.net php网站空间免费
  • 雨岑信息科技有限公司做企业型网站做的怎么样_公司规模如何提升seo搜索排名
  • 首页设计网站 专注山东建设厅网站
  • 怎么写一个网站程序简洁的网页
  • 中山做网站哪家好企业官网有哪些网站
  • 北京最新楼盘排行榜做网站优化有什么途径
  • 查看网站外链太仓市住房和城乡建设局规网站
  • 车辆年检查询系统官方网站wordpress开启gzip压缩
  • 福州网站制作案例wordpress justnews下载
  • 银行需要网站开发人员吗深圳做网站推广哪家好
  • 中国建设基础设施公司网站信息化建设包括网站建设
  • 贪便宜网站建房城乡建设部网站
  • 做免费互动小游戏的网站网站建设 自己的服务器
  • 国外作品集网站wordpress回复
  • 怎么自己制作属于自己的网站长春做网站用的软件
  • 湖南建设集团网站如何设置网站logo
  • 网站建设制作模板微网站微信数据库设计
  • 中国建设工程协会网站做智慧教室的网站
  • 网站开发的技术分类tp框架做网站