wordpress做资源下载站,购物网站模版html,做的网站怎么转成网址链接,哪个网站是专门做兼职的什么是SpringBoot Spring Boot是由Pivotal团队提供的全新框架#xff0c;其中“Boot”的意思就是“引导”#xff0c;Spring Boot 并不是对 Spring 功能上的增强#xff0c;而是提供了一种快速开发 Spring应用的方式。
Spring Boot 特点
嵌入的 Tomcat#xff0c;无需部署…什么是SpringBoot Spring Boot是由Pivotal团队提供的全新框架其中“Boot”的意思就是“引导”Spring Boot 并不是对 Spring 功能上的增强而是提供了一种快速开发 Spring应用的方式。
Spring Boot 特点
嵌入的 Tomcat无需部署 WAR 文件 Spring Boot 使用嵌入式的 Servlet 容器例如 Tomcat、Jetty 或者 Undertow 等应用无需打成 WAR 包 。
简化Maven配置 Spring Boot 提供了一系列的“starter”来简化 Maven 配置。
简化XML自动配置 Spring Boot 提供了大量的自动配置类开发人员不需要任何 xml 配置即可实现 Spring 的所有配置
构建 Spring Boot 项目
maven构建SpringBoot项目
创建maven工程不要使用骨架 pom.xml
?xml version1.0 encodingUTF-8?
project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersion!-- 继承springboot父工程--parentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.3.2.RELEASE/versionrelativePath/ !-- lookup parent from repository --/parentgroupIdcom.by/groupIdartifactIdSpringBoot_Junit/artifactIdversion1.0-SNAPSHOT/versionproperties
!-- 项目源码及编译输出的编码 --maven.compiler.source8/maven.compiler.sourcemaven.compiler.target8/maven.compiler.targetproject.build.sourceEncodingUTF-8/project.build.sourceEncoding/properties!-- 添加启动器--dependencies!-- springboot的web启动器--dependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId!-- tomcat启动器依赖范围--!-- provided范围:运行和测试时不去除tomcat打包时去除tomcat--scopeprovided/scope/dependency/dependencies/project
创建启动类
SpringBootApplication//表示当前类是一个SpringBoot启动类
public class Application {public static void main(String[] args) {SpringApplication.run(Application.class, args);}
}