0

我有我构建的 Spring MVC 应用程序。输出或工件是 WAR 文件。WAR 文件在 WildFly 中成功部署。但是当我调用 API 时,它会抛出内部服务器错误。在我所做的更改下方,在此更改之前,API 调用工作正常。

mvc-调度程序-servlet.xml

xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="
    http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/cache
    http://www.springframework.org/schema/cache/spring-cache.xsd ">

<cache:annotation-driven cache-manager="ehCacheManager"/>

<bean id="ehCacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager">
    <property name="cacheManager">
    <bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
        <property name="configLocation" value="/WEB-INF/ehcache.xml" />
    </bean>
    </property>
</bean>

pom.xml

<dependency>
      <groupId>org.ehcache</groupId>
      <artifactId>ehcache</artifactId>
     <version>3.2.0</version>
</dependency>
<dependency>
    <groupId>org.springframework</groupId>
     <artifactId>spring-context-support</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
 </dependency>

可能是什么错误?如何调试并查看导致错误的原因?我看不到任何与此相关的日志文件。

4

0 回答 0