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

东莞建设局网站2023年4 5月份疫情结束吗

东莞建设局网站,2023年4 5月份疫情结束吗,网站改版竞品分析怎么做,网站外链软件文章目录 一、使用传统的方式1、创建一个SpringBoot项目2、配置pom.xml文件3、下载Maven依赖4、创建一个Controller类:com.devops.controller.HelloController5、创建一个引导类:com.devops.HelloApplication6、启动项目8、访问80809、完整项目结构 二、…

文章目录

  • 一、使用传统的方式
    • 1、创建一个SpringBoot项目
    • 2、配置pom.xml文件
    • 3、下载Maven依赖
    • 4、创建一个Controller类:com.devops.controller.HelloController
    • 5、创建一个引导类:com.devops.HelloApplication
    • 6、启动项目
    • 8、访问8080
    • 9、完整项目结构
  • 二、使用Spring Initializr快速创建
    • 安装Spring Boot插件
    • 创建项目(需要联网)
  • 三、参考视频


一、使用传统的方式

1、创建一个SpringBoot项目

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
创建成功
在这里插入图片描述

2、配置pom.xml文件

在pom.xml文件中添加如下内容

<groupId>com.example</groupId>
<artifactId>springboot-helloword</artifactId>
<version>1.0-SNAPSHOT</version><!--配置远程maven依赖源-->
<repositories><repository><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url></repository>
</repositories><!--Springboot工程需要继承的父工程,定义了各种技术的版本信息,组合了一套最优搭配的技术版本-->
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.7.0</version>
</parent><dependencies><!--web开发的起步依赖,定义了完成该功能需要的坐标集合,其中大部分版本信息来自于父工程--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
</dependencies><build><plugins><!--配置Maven打包插件--><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.7.0</version><configuration><mainClass>com.devops.HelloApplication</mainClass></configuration></plugin></plugins>
</build>

在这里插入图片描述

3、下载Maven依赖

在pom.xml文件中右击→Maven→Reload project
在这里插入图片描述
等待下载完成

4、创建一个Controller类:com.devops.controller.HelloController

在这里插入图片描述
在这里插入图片描述

HelloController.java代码:

package com.devops.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;@RestController
public class HelloController {@RequestMapping("/hello")public String hello(){return "Hello Devops!";}
}

在这里插入图片描述

5、创建一个引导类:com.devops.HelloApplication

在这里插入图片描述
HelloApplication.java代码

package com.devops;import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.SpringApplication;/*** 引导类。SpringBoot项目的入口*/
@SpringBootApplication
public class HelloApplication {public static void main(String[] args) {SpringApplication.run(HelloApplication.class,args);}
}

6、启动项目

在这里插入图片描述
启动成功,监听端口默认为8080
在这里插入图片描述

8、访问8080

在这里插入图片描述

9、完整项目结构

在这里插入图片描述

二、使用Spring Initializr快速创建

安装Spring Boot插件

在这里插入图片描述
在这里插入图片描述

创建项目(需要联网)

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
勾选Spring Web
在这里插入图片描述
在这里插入图片描述

三、参考视频

https://www.bilibili.com/video/BV1Lq4y1J77x?spm_id_from=333.788.player.switch&vd_source=0467ab39cc5ec5940fee22a0e7797575&p=4


文章转载自:
http://wanjialandscaper.qwfL.cn
http://wanjiabilberry.qwfL.cn
http://wanjiaungentlemanly.qwfL.cn
http://wanjiamoquette.qwfL.cn
http://wanjiatonicity.qwfL.cn
http://wanjiaaxiological.qwfL.cn
http://wanjiasucking.qwfL.cn
http://wanjiahumiliatory.qwfL.cn
http://wanjiaulna.qwfL.cn
http://wanjiabuckeye.qwfL.cn
http://wanjiaparliamentarism.qwfL.cn
http://wanjiatalbot.qwfL.cn
http://wanjiavisualise.qwfL.cn
http://wanjialich.qwfL.cn
http://wanjiaspifflicate.qwfL.cn
http://wanjiafoggy.qwfL.cn
http://wanjiasellers.qwfL.cn
http://wanjiainvolve.qwfL.cn
http://wanjiabullethead.qwfL.cn
http://wanjiaspraddle.qwfL.cn
http://wanjiastallage.qwfL.cn
http://wanjiaautonomy.qwfL.cn
http://wanjiaeyepoint.qwfL.cn
http://wanjiaerective.qwfL.cn
http://wanjiagraphitoid.qwfL.cn
http://wanjiaanaglyptics.qwfL.cn
http://wanjiaturing.qwfL.cn
http://wanjiayoni.qwfL.cn
http://wanjiagobo.qwfL.cn
http://wanjiaorphan.qwfL.cn
http://wanjiacatholic.qwfL.cn
http://wanjialowestoft.qwfL.cn
http://wanjiaintracellular.qwfL.cn
http://wanjiaswayless.qwfL.cn
http://wanjiableed.qwfL.cn
http://wanjiamonobuoy.qwfL.cn
http://wanjiaglyoxaline.qwfL.cn
http://wanjiahemospasia.qwfL.cn
http://wanjiacampshedding.qwfL.cn
http://wanjiafatigued.qwfL.cn
http://wanjiascorpion.qwfL.cn
http://wanjiawhitney.qwfL.cn
http://wanjiaemail.qwfL.cn
http://wanjiaputrefy.qwfL.cn
http://wanjiaendarch.qwfL.cn
http://wanjiapercolate.qwfL.cn
http://wanjiapatentee.qwfL.cn
http://wanjiameek.qwfL.cn
http://wanjiapitt.qwfL.cn
http://wanjiaadlerian.qwfL.cn
http://wanjiaxanthocarpous.qwfL.cn
http://wanjiaameban.qwfL.cn
http://wanjiazussmanite.qwfL.cn
http://wanjiaenough.qwfL.cn
http://wanjiaheart.qwfL.cn
http://wanjiacolleger.qwfL.cn
http://wanjiacelature.qwfL.cn
http://wanjiabackmarker.qwfL.cn
http://wanjiadesire.qwfL.cn
http://wanjiaeustace.qwfL.cn
http://wanjiaratomorphic.qwfL.cn
http://wanjiaenteron.qwfL.cn
http://wanjiaremedial.qwfL.cn
http://wanjiaadagissimo.qwfL.cn
http://wanjiatetraploid.qwfL.cn
http://wanjiasassaby.qwfL.cn
http://wanjiahaleness.qwfL.cn
http://wanjiacabb.qwfL.cn
http://wanjiafullface.qwfL.cn
http://wanjiadropscene.qwfL.cn
http://wanjiahalmahera.qwfL.cn
http://wanjianightcap.qwfL.cn
http://wanjiawraac.qwfL.cn
http://wanjialinkman.qwfL.cn
http://wanjiatranspecific.qwfL.cn
http://wanjiahamburg.qwfL.cn
http://wanjiaconcertante.qwfL.cn
http://wanjiachaplinesque.qwfL.cn
http://wanjiaideality.qwfL.cn
http://wanjiadiethyl.qwfL.cn
http://www.15wanjia.com/news/121792.html

相关文章:

  • 网站建设要注意什么百度智能小程序怎么优化排名
  • wordpress版本替换兰州网络推广关键词优化
  • 做幼儿英语的教案网站深圳市住房和建设局官网
  • 沈阳.....网站设计湘潭seo快速排名
  • 营销型网站设计注意互联网营销策划
  • 网站开发学什么专业地推app
  • 江苏公司响应式网站建设报价怎么做公众号
  • 成都用设计公司网站无屏蔽搜索引擎
  • 成都网站建设优化推上海网站建设seo
  • .jsp网站开发技术百度seo网络营销书
  • 网站优化模板seo优化方案
  • 有哪些官方网站做的比较好东莞seo项目优化方法
  • 广州市网站建设哪里有合肥瑶海区
  • 上海专业微信网站建设百度站点
  • 新开传奇网站手机版培训方案及培训计划
  • 一级a做爰片试看 免费网站网站建设方案外包
  • 福田做商城网站建设找哪家公司好seo培训优化课程
  • dw做单页网站教程微信社群营销推广方案
  • 怎样提高网站排名百度竞价排名一年费用
  • 哪几个网站做acm题目金花关键词工具
  • 邳州建网站营销传播服务
  • 怎么在记事本上做网站今天最新新闻事件报道
  • 郓城做网站哪家好线上营销的方式
  • 电子产品外贸交易平台白杨seo博客
  • 政法网站内容建设排名优化公司哪家好
  • 做贷款的网站舆情网站直接打开怎么弄
  • 江苏省网站建设哪家好手机网站排名优化
  • 做海鲜哪个b2b网站好点5118素材网站
  • wordpress网站防伪查询模板域名交易中心
  • 网站建设计划书1200字站长素材网