Maven
是构建java web程序的工具
通过编写 pom.xml 来实现 类库的加载
IntelliJ IDEA 项目的默认 Spring boot 运行模板
其实是 简洁版/定制版 tomcat 服务器 默认运行时打开的8080端口
热更新 新增方法后且项目不报错的情况下 30秒重新自动热更新一次
pom.xml
"spring-boot-maven-plugin"报红问题
添加版本号
<version>2.3.4.RELEASE</version>
修改你的maven地址中settings.xml文件,在mirrors标签中添加下面内容,之后保存,当你再次使用maven下载jar包的时候,可以在eclipse或IDEA的控制台中看到会从阿里云提供的这个地址进行下载。速度要比从中央仓库快。
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url> "="http://maven.aliyun.com/nexus/content/groups/public/;
<mirrorOf>central</mirrorOf>
</mirror>
<!-- 热更新 -->
idea自带的运行配置springboot会重启 但不生效 原因未知 如需配合以下方式热更新 运行配置需要配置成应用程序选项
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<!-- 热更新 -->
<configuration>
<fork>true</fork>
</configuration>
按shift + alt +ctrl +/ 选1 出下图