从 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

MongoDB

MongoDB

Kristina Chodorow、Michael Dirolf / O'Reilly Media / 2010-9-24 / USD 39.99

Discover how MongoDB can help you manage a huMONGOus amount of data collected through your web application. This book covers the basic principles and advanced uses of this document-oriented database, ......一起来看看 《MongoDB》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具