java异常
java小白白白白白
这个作者很懒,什么都没留下…
展开
-
String类型的空指针异常
当方法的返回值为null时,使用string类型的tostring方法会出现空指针package com.jt;public class TestStringNull { public static void main(String[] args) { String s = takeString(); System.out.println(s.toString()); } private static String takeString(原创 2022-02-21 09:53:23 · 1353 阅读 · 0 评论 -
运行测试程序时,出现无法访问error
如下图对应meaven的包出现错误删除对应的包,然后刷新后重新更新原创 2022-02-10 09:34:34 · 119 阅读 · 0 评论 -
java.net.ConnectException: Connection refused: connect
context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8081/provider/echo/8090": Connection refused: connect; nested except原创 2022-01-18 15:26:17 · 4111 阅读 · 0 评论