从 Nutz 启动 Jetty nutz-web

码农软件 · 软件分类 · Java开发工具 · 2019-11-06 13:14:04

软件介绍

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不可以相同.

本文地址:https://codercto.com/soft/d/18393.html

The Golden Ticket

The Golden Ticket

Lance Fortnow / Princeton University Press / 2013-3-31 / USD 26.95

The P-NP problem is the most important open problem in computer science, if not all of mathematics. The Golden Ticket provides a nontechnical introduction to P-NP, its rich history, and its algorithmi......一起来看看 《The Golden Ticket》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具