nutz-web 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
nutz-web 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
nutz-web 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 Apache
开发语言 Java 查看源码 »
操作系统 跨平台
软件类型 开源软件
所属分类 开发工具Java开发工具
开源组织
地区 国产
投 递 者 wendal
适用人群 未知
收录时间 2017-07-18

软件简介

nutz-web,一个 Jetty 启动器 + Nutz.Mvc Ajax 视图

新建一个配置文件web.properties

app-root=src/main/webapp
app-port=8080

启动

方式一, 直接使用org.nutz.web.WebLauncher,该类自带main方法

方式二,新建一个类,调用org.nutz.web.WebLauncher

package net.wendal.nutzbook;

import org.nutz.web.WebLauncher;

public class MainLauncher extends WebLauncher {

    public static void main(String[] args) {
        WebLauncher.main(args);
    }
}

将war转为runnable war

首先,打包一个带依赖的nutz-web

mvn -Dmaven.test.skip=true clean compile assembly:single -U

转换war文件

java -jar target\nutz-web-1.r.61-SNAPSHOT-jar-with-dependencies.jar -inject nutzbook-2.9.5.war -output nutzcn.war

inject与output不可以相同.

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
5 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部