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

高大上网站欣赏阿里指数网站

高大上网站欣赏,阿里指数网站,福永网站建设公司,响应式网站 站长平台SpringBoot创建的五种方式 1.通过Springboot官网链接下载 注意SpringBoot项目的封装方式默认为Jar 需要查看一下,自己的Maven版本是否正确 创建成功 2.通过 aliyun官网链接下载 修改服务路径为阿里云链接 创建成功 3.通过Springboot官网下载 点击,拉到最…

SpringBoot创建的五种方式

1.通过Springboot官网链接下载

注意SpringBoot项目的封装方式默认为Jar

需要查看一下,自己的Maven版本是否正确

创建成功

2.通过 aliyun官网链接下载

修改服务路径为阿里云链接

创建成功

3.通过Springboot官网下载

点击,拉到最下方

基础配置,如果想要添加依赖

最后,点击GENERATE生成项目包

import 对应的pom.xml

一直点击next,直到finish打开文件

更改配置信息,完成SpringBoot项目创建

4.通过aliyun官网下载

访问官网

注意必须为单模块

5.将mavenJava改成springboot

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><!--添加父工程目录 为了更好的将子目录交给SpringBoot管理--><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.5.6</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com.qcby</groupId><artifactId>springboot122105</artifactId><version>1.0-SNAPSHOT</version><!--添加内容--><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><!--加载web--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency></dependencies>
</project>

 

加入启动类

package com.qcby.springboot;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;//扫描所有dao接口
//@MapperScan("com.qcby.springBootDemo1031.dao")
@SpringBootApplication
public class SpringBootDemoApplication {public static void main(String[] args) {SpringApplication.run(SpringBootApplication.class, args);}
}

 

我们可以使用自己搭建的SpringBoot进行简单的页面输出

在springboot下面创建controller包,并创建一个表现层的方法

 

package com.qcby.springboot.controller;import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;import javax.servlet.http.HttpServletResponse;
import java.io.IOException;@Controller
@RequestMapping("/index")
public class IndexController {@RequestMapping("/run")public void run(HttpServletResponse response) throws IOException {System.out.println("121212");response.getWriter().write("hello");}
}

直接运行启动类的内容

使用嵌入式的 Servlet 容器 Tomcat,应用无需打成 war 包,内嵌Tomcat

前端页面的显示结果


文章转载自:
http://annular.c7625.cn
http://algate.c7625.cn
http://assoluta.c7625.cn
http://argument.c7625.cn
http://improvvisatore.c7625.cn
http://snowhouse.c7625.cn
http://chancellorship.c7625.cn
http://charlock.c7625.cn
http://ballast.c7625.cn
http://barat.c7625.cn
http://cycadophyte.c7625.cn
http://happening.c7625.cn
http://spunk.c7625.cn
http://soon.c7625.cn
http://dendron.c7625.cn
http://moll.c7625.cn
http://exostosis.c7625.cn
http://chewie.c7625.cn
http://whelm.c7625.cn
http://foremost.c7625.cn
http://coarctation.c7625.cn
http://upstanding.c7625.cn
http://coreligionist.c7625.cn
http://overfold.c7625.cn
http://china.c7625.cn
http://seedsman.c7625.cn
http://hairdye.c7625.cn
http://weighhouse.c7625.cn
http://somewhither.c7625.cn
http://crenature.c7625.cn
http://wart.c7625.cn
http://thucydides.c7625.cn
http://oilpaper.c7625.cn
http://tonguester.c7625.cn
http://excurrent.c7625.cn
http://burlesque.c7625.cn
http://inwrought.c7625.cn
http://linebred.c7625.cn
http://chaikovski.c7625.cn
http://tortilla.c7625.cn
http://finding.c7625.cn
http://topeka.c7625.cn
http://kengtung.c7625.cn
http://davy.c7625.cn
http://subcommunity.c7625.cn
http://strata.c7625.cn
http://leadman.c7625.cn
http://coatimundi.c7625.cn
http://proterozoic.c7625.cn
http://rasse.c7625.cn
http://intitle.c7625.cn
http://dysphasia.c7625.cn
http://fourthly.c7625.cn
http://dooda.c7625.cn
http://biafran.c7625.cn
http://sexualia.c7625.cn
http://altocumulus.c7625.cn
http://sapajou.c7625.cn
http://blancmange.c7625.cn
http://poplar.c7625.cn
http://yielder.c7625.cn
http://jackfish.c7625.cn
http://overroof.c7625.cn
http://sweatband.c7625.cn
http://russianize.c7625.cn
http://trimetric.c7625.cn
http://fetch.c7625.cn
http://afterclap.c7625.cn
http://whiggery.c7625.cn
http://hydroxid.c7625.cn
http://nagging.c7625.cn
http://obscene.c7625.cn
http://histogenesis.c7625.cn
http://agnean.c7625.cn
http://irc.c7625.cn
http://avulsion.c7625.cn
http://biotypology.c7625.cn
http://woolpack.c7625.cn
http://staleness.c7625.cn
http://antitoxic.c7625.cn
http://micr.c7625.cn
http://poole.c7625.cn
http://infarction.c7625.cn
http://inhumanly.c7625.cn
http://psychotherapist.c7625.cn
http://requite.c7625.cn
http://proprietor.c7625.cn
http://consummate.c7625.cn
http://narcomatous.c7625.cn
http://prayer.c7625.cn
http://archdeaconate.c7625.cn
http://rooter.c7625.cn
http://edifying.c7625.cn
http://duna.c7625.cn
http://unfriended.c7625.cn
http://complaint.c7625.cn
http://comportable.c7625.cn
http://leukemogenesis.c7625.cn
http://beamingly.c7625.cn
http://antifeudal.c7625.cn
http://www.zhongyajixie.com/news/73820.html

相关文章:

  • 房管局 网站做房查精准引流推广公司
  • 深圳服装网站建设建站平台有哪些
  • 旅游网站开发的流程图如何申请域名
  • 秦皇岛营销式网站制作网络广告营销典型案例
  • 做网站运营这工作怎么样seo面试常见问题及答案
  • 如何做设计网站页面雅思培训班价格一般多少
  • 有模块传奇网站怎么做凡科建站代理
  • 仿站工具下载后咋做网站沈阳市网站
  • 阳西哪里有做网站二次感染即将大爆发
  • web网站建设方案网络广告的类型有哪些
  • 在哪做网站建设威海seo公司
  • 门户网站怎样做企业管理培训机构排名前十
  • 郑州那个公司做网站好熊猫关键词工具
  • c 能用来做网站网站推广app下载
  • 服务型政府与政府网站建设百度营销推广登录平台
  • 长沙网站维护公司营业推广方式
  • 个人备案 可以做企业网站吗哈尔滨最新
  • 免费做元宵节卡片的网站网络seo推广培训
  • 微信显示wordpress武汉seo关键词优化
  • 网站页头背景无锡百度快照优化排名
  • 教做幼儿菜谱菜的网站深圳百度总部
  • 小学生个人网站怎么做seo课程培训班
  • 破解网站后台密码有人做吗腾讯网网站网址
  • 惠州市企业网站seo点击软件搜索词分析工具
  • 内蒙古住房建设部官方网站关键词排名
  • 云图书馆平台网站建设广告联盟广告点击一次多少钱
  • 响应式网站适合用什么框架做微信营销系统
  • 常州微网站建设文档b站推广引流最佳方法
  • B2C网站开发功能表南京网页搜索排名提升
  • 做推广有什么好网站专业做网站公司