问答详情
源自:4-6 5.6 spring jms演示

问题问题问题

为啥我这个@Resource(name="queueDestination")报错呢?

提问者:lemonC 2017-08-01 16:25

个回答

  • 我觉得有点菜
    2017-10-15 00:08:31

    添加beans文件头:xmlns:context、xml:schemaLocation、标签。
    <beans
      xmlns="http://www.springframework.org/schema/beans"
      xmlns:amq="http://activemq.apache.org/schema/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
      http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
      http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
      
      <context:annotation-config />

  • 慕桂英8438257
    2017-08-01 17:02:55

    看路径看名字