spring添加热部署项目依赖:
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
pom配置阿里的镜像加快导包
<repositories>
<repository>
<id>central</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
日志级别设置
private static final Logger log = LoggerFactory.getLogger(MyController.class)
logging:
level:
com.itlike: debug
path: "D:/test/test.log"
info、debug
image.png
image.png
在编译的时候,总是报javax.annotation.meta.When.MAYBE没有找到的异常
原因还不知道,但是有解决方案(添加如下代码):
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1</version>
</dependency>
网友评论