Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

项目简介

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

社区以及联系方式

Comments ( 10 )

Sign in for post a comment

About

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

Releases (14)

All

Martian

Contributors

All

Activities

load more
can not load any more