Martian

Project Url: yuyenews/Martian
Introduction: :art: Martian is a Java development framework that does not require containers. No need for Tomcat, no Jboss, no Netty, or even Servlet. Based entirely on the JRE class library.
More: Author   ReportBugs   OfficialWebsite   
Tags:


Martian 框架是 Magician 项目的一个超集, 整合了 Magician 的大部分组件,并进行了少量的二次封装, 使其能够更加快捷的 搭建一个后端服务

运行环境

  • 最低支持 JDK 11+

搭建步骤

一、导入依赖

<dependency>
    <groupId>com.github.yuyenews</groupId>
    <artifactId>Martian</artifactId>
    <version>最新版</version>
</dependency>

二、创建配置类

public class DemoConfig extends MartianConfig {

    @Override
    public int port() {
        return super.port();
    }
}

三、启动服务

@MartianScan(scanPackage = {"com.demo.controller"})
public class Start {

    public static void main(String[] args) {
        StartMartian.start(Start.class, new DemoConfig());
    }
}

使用示例

https://github.com/yuyenews/Martian-newExample

社区以及联系方式

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools