SpringBoot单元测试示例整理

参考文章:https://www.jianshu.com/p/81fc2c98774f

放入任意一个可运行的SpringBoot工种中即可,其中DictionaryServiceTest.java依赖本地服务,需要注释

依赖:

<dependency>

    <groupId>org.springframework.boot</groupId>

    <artifactId>spring-boot-starter-test</artifactId>

</dependency>

示例截图

示例下载:

https://files-cdn.cnblogs.com/files/weijs/springboot%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95sample.rar

 

posted on 2020-08-14 10:22  weijs  阅读(200)  评论(0编辑  收藏  举报

导航