pom.xml 添加依赖
<!--mysql-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
...
添加依赖
<!--devtools热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
...
创建配置文件:site.properties
site.name = gopher
site.url = https://ijackey.com
创建获取配置参数的实体类:SiteConfig.java
package com.example.demo.config;
import org.springframework.boot.c...
点击 File-new-project
选择【Spring Initializr】,注意右边的选项,Default: https://start.spring.io/,这个站点经常会访问不到,如果访问不到,需要更改成:Custom,然后在框内输入:https://start.aliyun.com/
这...