摘要: Junit测试Controller(MockMVC使用),传输@RequestBody数据解决办法 一、单元测试的目的 简单来说就是在我们增加或者改动一些代码以后对所有逻辑的一个检测,尤其是在我们后期修改后(不论是增加新功能,修改bug),都可以做到重新测试的工作。以减少我们在发布的时候出现更过甚至 阅读全文
posted @ 2018-09-11 22:29 PollyLuo 阅读(9883) 评论(0) 推荐(0) 编辑
摘要: 1、创建class实体类 implements Serializable 2。打开idea设置File 》Settings 》Editor 》 Inspections 3、在搜索框输入【serialversionUID】 4、选择勾选【Serializable class without seria 阅读全文
posted @ 2018-09-11 19:52 PollyLuo 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 1、打开idea的设置界面 File | Settings 》 Build, Execution, Deployment 》 Compiler 2、勾选Buildproject antomatically (only works while not running/ debugging) 选项 3, 阅读全文
posted @ 2018-09-11 19:05 PollyLuo 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 网上有很多springboot的入门教程,自己也因为项目要使用springboot,所以利用业余时间自学了下springboot和springcloud,使用下来发现springboot还是挺简单的,体现了极简的编程风格,大部分通用都是通过注解就可以完成,下面就来详细讲解下如何使用springboo 阅读全文
posted @ 2018-09-11 18:05 PollyLuo 阅读(567) 评论(0) 推荐(0) 编辑