SpringBoot快速搭建
程序员文章站
2022-07-05 15:32:37
pom.xml ......
pom.xml
<?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>
<groupid>com.itcast.it</groupid>
<artifactid>spring-boot</artifactid>
<version>1.0.0-snapshot</version>
<parent>
<groupid>org.springframework.boot</groupid>
<artifactid>spring-boot-starter-parent</artifactid>
<version>2.1.1.release</version>
</parent>
<dependencies>
<!--spring web-->
<dependency>
<groupid>org.springframework.boot</groupid>
<artifactid>spring-boot-starter-web</artifactid>
</dependency>
</dependencies>
</project>
bootdemoapplication.java
package cn.itcast;
import org.springframework.boot.springapplication;
import org.springframework.boot.autoconfigure.springbootapplication;
@springbootapplication
public class bootdemoapplication {
//psvm 快速创建main
public static void main(string[] args) {
springapplication.run(bootdemoapplication.class,args);
}
}
上一篇: 适合女生的热门专业:女生适合学什么专业?
下一篇: Python装饰器 百日筑基之得气