
Java
#晚来天欲雪
这个作者很懒,什么都没留下…
展开
-
nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined.
具体报错:Unexpected exception during bean creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?解决方案:第一步:检查springboot与springcloud的版本是否统一(不统一,即使进行后原创 2022-05-28 11:33:42 · 2289 阅读 · 0 评论 -
【Java代码】如何判断一个数字是否为质数
判断一个数字是否为质数方法简单高效!!!public class IsPrime { public static void main(String[] args) { int[] test = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 33, 61, 75, 101}; for (int i : test) { System.out.println(i + ":原创 2022-04-24 21:54:23 · 711 阅读 · 0 评论