首页 新闻 搜索 专区 学院

shiro1.4 maven项目编译时出错,找不到EnvironmentLoaderListener

0
[待解决问题]

<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>1.4.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>1.4.0</version>
</dependency>

web.xml

<filter>
    <filter-name>shiroFilter</filter-name>
    <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>

<filter-mapping>
    <filter-name>shiroFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

<listener>
    <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>

报错: (jar包内能找到此类)
严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.apache.shiro.web.env.EnvironmentLoaderListener]
java.lang.ClassNotFoundException: org.apache.shiro.web.env.EnvironmentLoaderListener

储宏庆的主页 储宏庆 | 菜鸟二级 | 园豆:204
提问于:2020-02-09 17:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册