NutzCN Logo
问答 nutzwk导入netbeans开发环境,部署成功后只显示hello world
发布于 3029天前 作者 qq_60b27c63 1972 次浏览 复制 上一个帖子 下一个帖子
标签:

通过git下载的zip包,在本地导入,导入后构建发布正常,访问http://localhost:9084/nutzwk/ 只显示hello world。

16 回复

web.xml

Custom Route
那段拦截器删掉

没有找到Custom Route

<!-- Custom Route -->
<filter>
    <filter-name>route</filter-name>
    <filter-class>cn.wizzer.common.filter.RouteFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>route</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


??

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
NutzWk

<!-- Shiro -->
<listener>
    <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<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>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    <dispatcher>ERROR</dispatcher>
</filter-mapping>

<!-- Nutz Mvc -->
<filter>
    <filter-name>nutz</filter-name>
    <filter-class>org.nutz.mvc.NutFilter</filter-class>
    <init-param>
        <param-name>modules</param-name>
        <param-value>cn.wizzer.common.core.Module</param-value>
    </init-param>
    <init-param>
        <param-name>ignore</param-name>
        <param-value>^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html|mp3|mp4)$</param-value>
    </init-param>
    <init-param>
        <param-name>exclusions</param-name>
        <param-value>/assets/*,/druid/*,/upload/*</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>nutz</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

<!-- druid -->
<servlet>
    <servlet-name>DruidStatView</servlet-name>
    <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
    <init-param>
        <param-name>allow</param-name>
        <param-value>127.0.0.1</param-value>
    </init-param>
    <init-param>
        <param-name>exclusions</param-name>
        <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*,/assets/*,/upload/*</param-value>
    </init-param>
</servlet>
<servlet-mapping>
    <servlet-name>DruidStatView</servlet-name>
    <url-pattern>/druid/*</url-pattern>
</servlet-mapping>

<error-page>
    <error-code>403</error-code>
    <location>/WEB-INF/error/403.html</location>
</error-page>
<error-page>
    <error-code>404</error-code>
    <location>/WEB-INF/error/404.html</location>
</error-page>

下载主分支最新代码,重新部署之,隐性转发已经做好了。

恩, web.xml的问题

@qq_60b27c63 师兄,nutzwk有详细的文档说明吗?我找了好久也没找到,都是只能在论坛上看到一点。。。

wk-wiki目录里面就是文档

@wendal 谢谢了,但是,eclipse导入的不显示wk_wiki的文件,我发现只能在码云上在线看,非常不方便

额,放个pom?可以考虑一下。。。

@wendal 十分感谢了,如果能像nutz的说明文档那样详细就好了,今天我也是在导nutzwk导eclipse中,我有点小白,弄了一早上刚也才弄好,一直在想,有个详细的文档就好了

添加回复
请先登陆
回到顶部