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

安装百度seo搜索引擎工具

安装百度,seo搜索引擎工具,郑州网络推广平台有哪些,徐州百姓网说明 本文建立一个最基本的SpringBoot3项目&#xff0c;依赖项仅包含 spring-web&#xff08;SpringMVC&#xff09;。 备注&#xff1a;SpringBoot3需要JDK17支持&#xff0c;配置方法参考&#xff1a; SpringBoot3项目中配置JDK17 项目结构图示 POM <?xml version&qu…

说明

本文建立一个最基本的SpringBoot3项目,依赖项仅包含 spring-web(SpringMVC)

备注:SpringBoot3需要JDK17支持,配置方法参考:
SpringBoot3项目中配置JDK17

项目结构图示

在这里插入图片描述

POM

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>3.1.3</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com.example</groupId><artifactId>hello-spring-boot3</artifactId><version>1.0</version><name>HelloSpringBoot3</name><description>Demo project for Spring Boot3</description><properties><java.version>17</java.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies><dependencyManagement><dependencies><dependency><groupId>org.yaml</groupId><artifactId>snakeyaml</artifactId><version>2.0</version></dependency></dependencies></dependencyManagement><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>

启动器:Application

package com.example;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication
public class HelloSpringBoot3Application {public static void main(String[] args) {SpringApplication.run(HelloSpringBoot3Application.class, args);}}

配置文件:yml

使用的默认配置,未添加任何内容。

控制器:Controller

package com.example.web.controller;import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;@RestController
@RequestMapping("test")
public class TestController {@GetMapping("hello")public String hello() {return "Hello SpringBoot3";}}

接口调用示例

在这里插入图片描述

http://www.yayakq.cn/news/594160/

相关文章:

  • 单位门户网站怎么做wordpress rds
  • 公司如何做自己的网站百度网盘资源
  • 什么网站比谷歌还好企业网站优化费用
  • 酒店网站设计站长字体
  • 信宜网站设计公司延安市住建建设网站
  • 论坛建立网站网站建设背景图片
  • 贵阳网站建设服务公司网页设计改版
  • 做招聘信息的网站有哪些html公司网页
  • 盐城手机网站建设中山网络公司网站
  • 展示营销类网站营口大石桥网站建设
  • 做pc端网站市场宿迁明远建设有限公司网站
  • 资源库网站开发联系人网站设计
  • 电商网站支付体系建设特点杭州专业程序开发公司
  • 青岛胶东建设国际机场网站建立网站目录的意义
  • 建设网站的实验目的和意义公司做公司网站宣传
  • 房产网站开发报价wordpress调用分类图片大小
  • 科普重庆网站上海网页建站模板
  • 现在还有做系统的网站吗北京朝阳区房价2021最新价格
  • 网站开发支付宝支付档案安全网站安全建设
  • 网站 域名空间 调试网站优化+山东
  • 中英文外贸网站源码网页游戏开服表百科
  • 合川网站建设公司二维码在线生成工具
  • 张家界网站建设高品质网站建设公司
  • 摄影网站源代码有人模仿qq音乐做的h5网站吗
  • 手机网站建设经典教程域名注册的网站有哪些
  • 济南网站建设丨 首选搜点网络wordpress瀑布流主题 仿蛋花儿主题
  • 河北省住房和城乡建设厅网站查灵台县门户网
  • 怎么找网站后台自己 做网站
  • 上传到网站去的文档乱码广告公司网站开发
  • 网站首页建设海口网站建设好