<filter>
<filter-name>nutz</filter-name>
<!-- <filter-class>com.yc.manager.filter.LoginFilter</filter-class> -->
<filter-class>org.nutz.mvc.NutFilter</filter-class>
<init-param>
<param-name>exclusions</param-name>
<param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,*/static/*,/rs/*</param-value>
</init-param>
<init-param>
<param-name>modules</param-name>
<param-value>com.yc.manager.MainModule</param-value>
</init-param>
</filter>
LoginFilter继承了NutzFilter
之后访问
@At("loginjsp")
@Ok("jsp:main.loginjsp")
public void loginjsp() {
}
这种lognjsp入口访问就会报404
web.xml种使用
<filter-class>org.nutz.mvc.NutFilter</filter-class>
就能正确访问