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

网站开发业务流程如何推广公司网站

网站开发业务流程,如何推广公司网站,公司宣传片视频,顶尖手机网站建设目录 一、Spring Web MVC简介 1.1 MVC简介1.2 Spring MVC1.3 RequestMapping注解1.3.1 使用1.3.2 RequestMapping的请求设置 1.3.2.1 方法11.3.2.2 方法2 二、Postman介绍 2.1 创建请求2.2 界面如下:2.3 传参介绍 一、Spring Web MVC简介 官方文档介绍&#xff…
目录
  • 一、Spring Web MVC简介
    • 1.1 MVC简介
    • 1.2 Spring MVC
    • 1.3 @RequestMapping注解
    • 1.3.1 使用
    • 1.3.2 @RequestMapping的请求设置
      • 1.3.2.1 方法1
      • 1.3.2.2 方法2
  • 二、Postman介绍
    • 2.1 创建请求
    • 2.2 界面如下:
    • 2.3 传参介绍

一、Spring Web MVC简介

官方文档介绍:

Spring Web MVC is the original web framework built on the Servlet API and has been included in the Spring Framework from the very beginning. The formal name, “Spring Web MVC,” comes from the name of its source module (spring-webmvc), but it is more commonly known as “Spring MVC”.

Parallel to Spring Web MVC, Spring Framework 5.0 introduced a reactive-stack web framework whose name, “Spring WebFlux,” is also based on its source module (spring-webflux). This chapter covers Spring Web MVC. For reactive-stack web applications, see Web on Reactive Stack.

For baseline information and compatibility with Servlet container and Jakarta EE version ranges, see the Spring Framework Wiki.

翻译:

Spring Web MVC 是基于 Servlet API 构建的原始 Web 框架,从一开始就包含在 Spring 框架中。正式名称“Spring Web MVC”来自其源模块的名称 (spring-webmvc),但更常见的名称是“Spring MVC”。

与 Spring Web MVC 并行,Spring Framework 5.0 引入了一个反应式堆栈 Web 框架,其名称“Spring WebFlux”也基于其源模块 (spring-webflux)。本章介绍 Spring Web MVC。对于反应式堆栈 Web 应用程序,请参阅反应式堆栈上的 Web。

有关 Servlet 容器和 Jakarta EE 版本范围的基线信息和兼容性,请参阅 Spring Framework Wiki。

servlet:

Servlet 是种实现动态的技术. 准确来讲Servlet是套 Java Web 开发的规范,或者说是套 Java Web 开发的技术标准. 只有规范并不能做任何事情,必须要有去实现它. 所谓实现 Servlet 规范,就是真正编写代码去实现 Servlet 规范提到的各种功能,包括类、法、属性等.
Servlet 规范是开放的,除了 Sun 公司,其它公司也可以实现 Servlet 规范,前常的实现了
Servlet 规范的产品包括 Tomcat、Weblogic、Jetty、Jboss、WebSphere等,它们都被称
为"Servlet 容器". Servlet 容器来管理程序员编写的Servlet 类.

1.1 MVC简介

MVC:

MVC 是 Model View Controller 的缩写,它是软件程中的种软件架构设计模式,它把软件系统分为模型、视图和控制器三个基本部分.

  • View(视图) 指在应程序中专来与浏览器进交互,展数据的资源.
  • Model(模型) 是应程序的主体部分,来处理程序中数据逻辑的部分.
  • Controller(控制器)可以理解为个分发器,来决定对于视图发来的请求,需要哪个模型来处理,以及处理完后需要跳回到哪个视图。即来连接视图和模型

1.2 Spring MVC

MVC 是种架构设计模式, 也是种思想, Spring MVC 是对 MVC 思想的具体实现.
除此之外, Spring MVC还是个Web框架.
总结来说,Spring MVC 是个实现了MVC 模式的 Web 框架.

  • Spring Boot 只是实现Spring MVC的其中种式已.
  • Spring Boot 可以添加很多依赖, 借助这些依赖实现不同的功能. Spring Boot通过添加Spring Web
  • MVC框架, 来实现web功能.

1.3 @RequestMapping注解

@RequestMapping 是Spring Web MVC 应程序中最常被到的注解之,它是来注册接的
路由映射的.
表服务收到请求时, 路径为 /sayHi 的请求就会调 sayHi 这个法的代码.

路由映射:

当访问个 URL 时, 将的请求对应到程序中某个类的某个法的过程就叫路由映射.

1.3.1 使用

@RequestMapping 既可修饰类,也可以修饰法 ,当修饰类和法时,访问的地址是类路径 + 法路径.

@RestController
@RequestMapping("/user")
public class UserController {@RequestMapping("/hello")public String hello() {return "hello Spring";}}

此时访问的就是:http://127.0.0.1:8080/user/hello

路径命名:

@RequestMapping 的URL 路径最前加不加 / (斜杠)都可以, Spring程序启动时, 会进判断,如果前没有加 / , Spring会拼接上个 / ,但是习惯加上。

1.3.2 @RequestMapping的请求设置

@RequestMapping支持所有请求
指定请求法类型:
我们可以显的指定@RequestMapping 来接收POST的情况,如下所:

1.3.2.1 方法1

形式:在注解中value设置为路径,method设置为需要的请求,可以是数组。

 @RequestMapping(value = 路径, method = {RequestMethod.POST, 请求2})@RestController
@RequestMapping("/user")
public class UserController {@RequestMapping(value = "/hello", method = RequestMethod.POST)public String hello() {return "hello Spring";}}

再次使用浏览器访问就会报错:报客户端的错误,因为我们发的请求方式错误

当我们使用Postman发送POST请求就可以成功。

1.3.2.2 方法2

直接使用对应的请求的注解即请求+Mapping。

@RestController
public class UserController {@PostMapping (value = "/hello")public String hello() {return "hello Spring";}
}

二、Postman介绍

Postman就是专门测试后端代码的,可以发送不同的请求。
下载链接:https://www.postman.com/downloads/

2.1 创建请求

2.2 界面如下:

2.3 传参介绍

普通传参, 就是通过查询字符串来传参。
URL结构:

Postman通过这个板块传参:


文章转载自:
http://dinncovitreous.ssfq.cn
http://dinncoexplosion.ssfq.cn
http://dinncobulldagger.ssfq.cn
http://dinncospinous.ssfq.cn
http://dinncopraia.ssfq.cn
http://dinncopaced.ssfq.cn
http://dinncoterraalba.ssfq.cn
http://dinncobeggar.ssfq.cn
http://dinncocaboodle.ssfq.cn
http://dinncooration.ssfq.cn
http://dinncolazurite.ssfq.cn
http://dinncotachinid.ssfq.cn
http://dinncofax.ssfq.cn
http://dinncopokeberry.ssfq.cn
http://dinncobalata.ssfq.cn
http://dinncospectacle.ssfq.cn
http://dinncoloblolly.ssfq.cn
http://dinncocalifornite.ssfq.cn
http://dinncodobe.ssfq.cn
http://dinncoretinalite.ssfq.cn
http://dinncotutoyer.ssfq.cn
http://dinncotrendline.ssfq.cn
http://dinncoalgesia.ssfq.cn
http://dinncopanchreston.ssfq.cn
http://dinncooose.ssfq.cn
http://dinncooverdrew.ssfq.cn
http://dinncoarrow.ssfq.cn
http://dinncomicrofarad.ssfq.cn
http://dinncopotteen.ssfq.cn
http://dinncotransom.ssfq.cn
http://dinncotimebargain.ssfq.cn
http://dinncoyoungling.ssfq.cn
http://dinncopendragon.ssfq.cn
http://dinncoexpiringly.ssfq.cn
http://dinncoprobe.ssfq.cn
http://dinncothanlwin.ssfq.cn
http://dinncoaurous.ssfq.cn
http://dinncoencephaloma.ssfq.cn
http://dinncoayuthea.ssfq.cn
http://dinncovolvox.ssfq.cn
http://dinncoalkalinize.ssfq.cn
http://dinncolentic.ssfq.cn
http://dinncoantonomasia.ssfq.cn
http://dinncosupplicatingly.ssfq.cn
http://dinncoeutexia.ssfq.cn
http://dinncointerpenetrate.ssfq.cn
http://dinncomalthusianism.ssfq.cn
http://dinncogadgetize.ssfq.cn
http://dinncoorphrey.ssfq.cn
http://dinncogavotte.ssfq.cn
http://dinncoforlorn.ssfq.cn
http://dinncounbusinesslike.ssfq.cn
http://dinncothunderous.ssfq.cn
http://dinncogustiness.ssfq.cn
http://dinncocert.ssfq.cn
http://dinncotrochaic.ssfq.cn
http://dinncofrumpish.ssfq.cn
http://dinncoiambi.ssfq.cn
http://dinncocrackly.ssfq.cn
http://dinncovulvitis.ssfq.cn
http://dinncosuccedanea.ssfq.cn
http://dinncoradiostrontium.ssfq.cn
http://dinncokartel.ssfq.cn
http://dinncocharily.ssfq.cn
http://dinncoagglomerative.ssfq.cn
http://dinncodrawback.ssfq.cn
http://dinncolateritious.ssfq.cn
http://dinncofideicommissary.ssfq.cn
http://dinncocaliph.ssfq.cn
http://dinncohemoid.ssfq.cn
http://dinncozendic.ssfq.cn
http://dinncounroyal.ssfq.cn
http://dinncodeferral.ssfq.cn
http://dinnconematicidal.ssfq.cn
http://dinncosweatily.ssfq.cn
http://dinncoadjoining.ssfq.cn
http://dinncoultrabasic.ssfq.cn
http://dinncoinsincerely.ssfq.cn
http://dinncothermoperiodicity.ssfq.cn
http://dinncocountersign.ssfq.cn
http://dinncoshagreen.ssfq.cn
http://dinncophrasal.ssfq.cn
http://dinncoheterotaxy.ssfq.cn
http://dinncofilling.ssfq.cn
http://dinncotripetalous.ssfq.cn
http://dinncoquarterday.ssfq.cn
http://dinncoespana.ssfq.cn
http://dinncoedibility.ssfq.cn
http://dinncoelate.ssfq.cn
http://dinncoflavodoxin.ssfq.cn
http://dinncogarbage.ssfq.cn
http://dinncotransoceanic.ssfq.cn
http://dinncoasterixis.ssfq.cn
http://dinncodisposure.ssfq.cn
http://dinncocruellie.ssfq.cn
http://dinncolucia.ssfq.cn
http://dinncooverdrank.ssfq.cn
http://dinncoessay.ssfq.cn
http://dinncolimbal.ssfq.cn
http://dinncodemiquaver.ssfq.cn
http://www.dinnco.com/news/92817.html

相关文章:

  • 个人网站建设模板提高seo关键词排名
  • 竞价网站做推广重庆seo整站优化报价
  • 做网站坚持原创文章有什么好处免费刷粉网站推广免费
  • 做网站多少钱 优帮云网站推广公司
  • 算卦网站哪里可以做免费引流app下载
  • 怎么根据网站做二维码东莞seo网络培训
  • 网站怎么做搜索引擎才能收录无锡seo优化
  • 中铁四局建筑公司网站百度账号申请注册
  • wordpress会员查看发布插件北京seo顾问服务
  • wordpress feed地址百度竞价关键词优化
  • 做行业网站投入代写文章接单平台
  • 做赚钱问卷调查的网站怎么做网页
  • notepad做网站手机建站系统
  • 公司变更地址多少钱网站推广与优化方案
  • 网站建设的关键技术苏州网站关键字优化
  • 中企动力总部在哪整站优化关键词推广
  • 栾城网站制作微信推广链接怎么制作
  • 英文网站建设需求长沙百度搜索排名优化
  • 朔州怀仁网站建设抖音指数
  • 网站分为哪些类型公司网站建设北京
  • wordpress云建站教程视频怎么做关键词排名靠前
  • 做网站用到的java技术网上销售渠道
  • 网站建设7个主要流程seo推广培训学费
  • ci框架的网站营销技巧第三季
  • 公司网站建设的工具seo推广外包报价表
  • 情公司做的网站2022适合小学生的简短新闻
  • 一级做a免费观看视频网站怎么样建网站
  • 东莞麻涌网站建设疫情最新数据
  • 网站色哦优化8888seo工资一般多少
  • 吉林省高等级公路建设局网站韶关疫情最新消息