spring boot
Tonny__
这个作者很懒,什么都没留下…
展开
-
springboot单元测试,启动报错
1、java.lang.Exception: No runnable methodsjava.lang.Exception: No runnable methods at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:191) at o...转载 2018-04-10 16:24:51 · 1694 阅读 · 0 评论 -
Only no-arg methods may be annotated with @Scheduled
SpringBoot启动的项目,定时任务@Scheduled报错这里我的方法是: @Scheduled(cron = "0 0/1 * * * ? ") public ResponseEntity pushRiskResult(String nid, Integer noticeNum) { log.warn("定时任务"); }项目启动时报错:Caused b...原创 2018-09-08 13:11:14 · 5030 阅读 · 0 评论 -
SpringBoot2.0整合redis完整源码
源码github地址:https://github.com/tonnyzt/springboot.git 1、引入redis框架,当然版本需要和springboot的版本一致<dependency> <groupId>org.springframework.boot</groupId> <artifactId>sp...原创 2018-11-20 17:38:36 · 1275 阅读 · 0 评论