Spring Cloud
l.x._.
这个作者很懒,什么都没留下…
展开
-
笔记 | Spring Boot 的测试
《深入理解Spring Cloud与微服务构建》笔记 4.2.3:该测试章节要与前面的小案例结合该章节代码:package com.example.demo;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.原创 2020-08-18 10:21:44 · 111 阅读 · 0 评论 -
错误整理二 | assertThat, equalTo, @RunWith, @SpringBootTest标红
《深入理解Spring Cloud与微服务构建》整理:关于 4.2.3 Spring Boot 的测试一章,assertThat, equalTo方法报红,添加对应包即可:import static org.junit.Assert.*;import static org.hamcrest.Matchers.equalTo;关于本章的代码:package com.example.demo;import org.junit.Test;import org.junit.runner.RunW原创 2020-08-18 09:51:35 · 1557 阅读 · 0 评论 -
错误整理一 | IntelliJ IDEA 2019.2.2 关闭 single instance only
《深入理解Spring Cloud与微服务构建》笔记一:IntelliJ IDEA默认运行项目后,再点击运行就是重启,但有时候,需要配置项目的不同端口号,同时运行。关闭方法:1、点击IDEA右上角项目的隐藏下拉框,出现下拉列表,点击Edit Configurations2、弹出Run/Debug Configuration对话框,勾选Allow parallel run注意:在IDEA某些旧版本中,出现的不是Allow parallel run,而是Single instance only,如原创 2020-08-18 09:03:34 · 1802 阅读 · 1 评论