SpringBoot快速搭建
程序员文章站
2022-04-28 21:51:45
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);
}
}
上一篇: mysql 连接超时解决方案: 怎样修改默认超时时间
下一篇: java学习笔记