Coder Social home page Coder Social logo

coderhester / spring-oxygen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isxcode/spring-oxygen

0.0 0.0 0.0 1.52 MB

๐Ÿฆ„ Spring rapid development integration framework.

Home Page: https://ispong.gitee.io

License: Apache License 2.0

Java 97.94% FreeMarker 2.06%

spring-oxygen's Introduction

spring-oxygen

Spring Oxygen

Spring rapid development integration framework.

Status Version Maven Central GitHub last commit GitHub

Github watch Github star Github follow

๐Ÿ“ฆ Installation

Maven

<dependency>
  <groupId>com.github.ispong</groupId>
  <artifactId>spring-oxygen-boot-starter</artifactId>
  <version>1.0.0</version>
</dependency>

Gradle

implementation 'com.github.ispong:spring-oxygen-boot-starter:1.0.0'

๐Ÿ”จ Start Up

import com.ispong.oxygen.annotation.EnableOxygen;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableOxygen
public class AppConfig {

}

๐Ÿ“„ Documentation

You can find the spring-oxygen documentation on the website.

Modules

There are a number of modules in spring-oxygen, here is a quick overview:

  • Integrate spring jdbc rapid development

  • Example

import org.springframework.stereotype.Repository;
import com.ispong.oxygen.flysql.core.Flysql;
import com.ispong.oxygen.flysql.pojo.enums.OrderType;

@Repository
public class UserDao {

    public List<UserEntity> queryUser() {

        return Flysql.select(UserEntity.class)
                .select("userName", "sex", "account", "age")
                .eq("userName", "ispong")
                .between("point", 100, 200)
                .gt("age", "18")
                .like("sex", "M")
                .in("userPower", "ADMIN", "USER", "MANAGER")
                .orderBy("userIndex", OrderType.DESC)
                .query();
    }
}
  • Integrate WeChat platform rapid development

  • Example

oxygen:
  wechatgo:
    app-id: xxxxx # appId
    app-secret: xxxxx # appSecret
    token: xxxxx # custom server token
import com.ispong.oxygen.wechatgo.handler.WechatgoEventHandler;
import com.ispong.oxygen.wechatgo.pojo.entity.WeChatEventBody;
import org.springframework.stereotype.Service;

@Service
public class WechatgoService implements WechatgoEventHandler {

    @Override
    public void subscribeEvent(WeChatEventBody weChatEventBody) {

        // do subscribe event
    }
}
  • Fast generate java code

  • Example

oxygen:
  freecode:
    author: ispong
    version: 0.0.2
    module-path: com.ispong.app.module
GET http://localhost:8080/freecode/generate?tableName=user_table
๐Ÿ“‚ com
    ๐Ÿ“‚ ispong
        ๐Ÿ“‚ app
            ๐Ÿ“‚ module
                ๐Ÿ“„ userTableController
                ๐Ÿ“„ userTableEntity
                ๐Ÿ“„ userTableRepository
                ๐Ÿ“„ userTableService

Thanks for free JetBrains Open Source license

jetbrains

spring-oxygen's People

Contributors

ispong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.