comm能否用在weblogic下

gotolwd gotolwd 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
CommPortIdentifier portId;
Enumeration portList;
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();
System.out.println("==================="+portId.getName());
简单测试了一下
如果我自己写了个main函数,编译后用java 执行后是可以打出端口名的
但是如果我挂在weblogic下,用浏览器访问就不能显示,为什么呢?
我现在的weblogic是运行在我本机的
...全文
评论 4
收藏 已收藏
分享
返回顶部
gotolwd
Java SE 62,620 成员 307,251 内容