我在尝试使用 Spring-JMS 时遇到编译错误。一个快速的谷歌搜索只出现了一个匹配的结果,但我无法从中得到任何有用的东西。
我正在使用以下代码:
public class Class extends AbstractClass {
/** {@inheritDoc} */
@Override
public void acceptImportableItem(final ImportableItem<File> item) {
JmsOperations template = getJmsTemplate();
template.convertAndSend(item);
}
}
当我尝试编译它时,我收到以下编译错误:
cannot access javax.jms.Destination
和
class file for javax.jms.Destination not found
在我的代码中没有任何地方引用 javax.jms.Destination。你们中有人知道为什么会出现这个错误吗?