
我瘦了,我找到了解决方法:
在
Handler.openConnection(URL u)我们必须添加
String path = getURL().getPath().startsWith("/") ? getURL().getPath().substring(1) : getURL().getPath();URL resourceUrl = classLoader.getResource(path);代替
URL resourceUrl = classLoader.getResource(u.getPath());
webView.getEngine().load("classpath:data/index.html");用
webView.getEngine().load("classpath:///data/index.html");欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)