![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
文章平均质量分 51
Blank_Cybill
不忘初心,方的始终
展开
-
Spring @Retryable 和 @Recover
@Retryable 和 @Recover 使用的时候 注意事项@Recover的注解的方法第一个参数需要是 @Retryable 所捕获的重试异常类型;必须是第一个参数@Recover注解的方法的 返回值必须 和 @Retryable注解的方法返回值一致上面两条的原因见文章末尾最近在使用@Retryable 注解时出现的问题 是 使用了 @Retryable 注解之后;指定了特定的异常进行异常重试机制;设置最大重试次数,当时只设置了@Retryable 注解;但是并没有配合使用 @R原创 2021-01-08 09:44:01 · 1148 阅读 · 0 评论 -
SpringBoot报错Circular view path [index]: would dispatch back to the current handler URL [/index] agai
报错信息:javax.servlet.ServletException: Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unsp...原创 2018-12-13 00:08:03 · 19756 阅读 · 4 评论 -
Springboot远程调用错误整合
java.lang.IllegalArgumentException: Illegal character in scheme name at index 0:错误java.lang.IllegalArgumentException: Illegal character in scheme name at index 0:java.lang.IllegalArgumentException: ...原创 2018-12-13 10:55:05 · 768 阅读 · 0 评论 -
springboot项目中,保证所有多线程都执行完,拿到最后所有线程的结果集测试
自己摸索这搜着些的,如果有问题,请大家给点指点下,谢谢测试类:代码: @Test public void test1() { //同步辅助类需要通过这个类来控制所有的线程都执行完成; List<String> list = new ArrayList<>(); CountDownLatch countDo...原创 2018-12-13 19:51:58 · 16184 阅读 · 2 评论