/**
* 判断网络地址是否存在
*
* @param path
* @return
*/
public static boolean judeUrlExists(String path) {
URL url = null;
try {
url = new URL(path);
try (InputStream stream = url.openConnection().getInputStream()) {
return stream.available() > 0;
} catch (IOException e) {
e.printStackTrace();
}
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
return false;
}
以及reibbitmq注解不起作用,去掉下面的注解