测试
文章平均质量分 60
weixin_41887312
这个作者很懒,什么都没留下…
展开
-
SpringBoot Test集成测试(service层)
如何测试SpringBoot的请求?使用spring-boot-starter-test这个包即可完成测试1、在src/test/main目录下编写测试类AccountBasicServiceImplTest.javapackage cn.yunpay.account.service.impl;import org.junit.Test;import org.junit.runner.Run...原创 2018-06-29 14:08:02 · 16680 阅读 · 1 评论 -
Failed to convert property value of type 'java.lang.String' to required type 'int' for property
junit + Spring 测试Service org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'initialSize'; nested excep...原创 2018-08-02 11:36:05 · 3362 阅读 · 1 评论 -
Could not autowire field: private javax.servlet.http.HttpServletRequest
junit + Spring 测试Service报错信息[2018-08-02 14:08:16] main INFO pool.DruidDataSource: {dataSource-1} inited[2018-08-02 14:08:16] main INFO pool.DruidDataSource: {dataSource-2} inited[2018-08-02 1...原创 2018-08-02 14:15:12 · 1478 阅读 · 0 评论