一、依赖和配置
1、POM文件
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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.0</version>
<relativePath/>
</parent>
<groupId>com.xu</groupId>
<artifactId>BootDemoPro</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>BootDemoPro</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>8</java.version&