为了账号安全,请及时绑定邮箱和手机立即绑定

正确的xml配置文件

<properties>
    <spring.version> 4.2.5.RELEASE </spring.version>
</properties>

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${spring.version}</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>${spring.version}</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>${spring.version}</version>
    </dependency>

    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-core</artifactId>
        <version>5.7.0</version>
        <exclusions>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>


正在回答

1 回答

我这样配置,启动后报了Caused by: java.lang.NoClassDefFoundError: javax/jms/JMSContext的错,经查询又增加了以下依赖:

<dependency>

    <groupId>javax.jms</groupId>

    <artifactId>javax.jms-api</artifactId>

    <version>2.0.1</version>

</dependency>


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

正确的xml配置文件

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信