Giter Site home page Giter Site logo

scottleef / solon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noear/solon

0.0 0.0 0.0 43.85 MB

🔥 Java 新的生态:更快、更小、更简单!!!启动快 5 ~ 10 倍;qps 高 2~ 3 倍;运行时内存节省 1/3 ~ 1/2;打包可以缩到 1/2 ~ 1/10

Home Page: https://solon.noear.org

License: Apache License 2.0

Java 98.63% Kotlin 0.05% TypeScript 0.44% CSS 0.01% HTML 0.43% Vue 0.42% FreeMarker 0.03%

solon's Introduction


Solon v2.5.4

Java 新的生态型应用开发框架,更小、更快、更简单!

https://solon.noear.org

Maven Apache 2 jdk-8 jdk-11 jdk-17 jdk-20
gitee star github star


语言: 中文 | English | Русский | 日本語

启动快 5 ~ 10 倍;qps 高 2~ 3 倍;运行时内存节省 1/3 ~ 1/2;打包可以缩到 1/2 ~ 1/10


介绍:

从零开始构建。有自己的标准规范与开放生态。组合不同的生态插件应对不同需求,方便定制,快速开发:

  • 克制、简洁、高效、开放、生态
  • 支持 JDK8、JDK11、JDK17、JDK20
  • Http、WebSocket、Socket 三种信号统一的开发体验(俗称:三源合一)
  • 支持“注解”与“手动”两种模式,按需自由操控
  • Not Servlet,可以适配任何基础通讯框架(最小 0.3m 运行rpc架构)
  • 独特的 IOC/AOP 容器设计。不会因为插件变多而启动变很慢
  • 支持 Web、Data、Job、Remoting、Cloud 等任何开发场景
  • 兼顾 Handler + Context 和 Listener + Message 两种架构模式
  • 强调插件式扩展,可扩展可切换;适应不同的应用场景
  • 支持 GraalVm Native Image 打包
  • 允许业务插件“热插”、“热拔”、“热管理”

生态架构图:

你好世界:

<parent>
    <groupId>org.noear</groupId>
    <artifactId>solon-parent</artifactId>
    <version>2.5.4</version>   
</parent>

<dependencies>
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-web</artifactId>
    </dependency>
</dependencies>
@SolonMain
public class App{
    public static void main(String[] args){
        Solon.start(App.class, args, app->{
            //Handler 模式:
            app.get("/hello",(c)->c.output("Hello world!"));
        });
    }
}

//Controller 模式:(mvc or rest-api)
@Controller
public class HelloController{
    //限定 Socket 方法类型
    @Socket
    @Mapping("/mvc/hello")
    public String hello(String name){
        return "Hello " + name;
    }
}

//Remoting 模式:(rpc)
@Mapping("/rpc/")
@Remoting
public class HelloServiceImpl implements HelloService{
    @Override
    public String hello(){
        return "Hello world!";
    }
}

主框架及快速集成开发包:

主框架:
组件包 说明
org.noear:solon-parent 依赖版本管理
org.noear:solon 主框架
org.noear:nami 伴生框架(作为solon remoting 的客户端)
快速集成开发包及相互关系:
组件包 说明
org.noear:solon-lib 快速开发基础集成包
org.noear:solon-api solon-lib + jlhttp boot;快速开发接口应用
org.noear:solon-web solon-api + freemarker + sessionstate;快速开发WEB应用
org.noear:solon-beetl-web solon-api + beetl + beetlsql + sessionstate;快速开发WEB应用
org.noear:solon-enjoy-web solon-api + enjoy + arp + sessionstate;快速开发WEB应用
org.noear:solon-rpc solon-api + nami;快速开发RPC应用
org.noear:solon-cloud solon-rpc + consul;快速开发微服务应用

加入到交流群:

QQ交流群:22200020 微信交流群(申请时输入:Solon)

交流群里,会提供 "保姆级" 支持和帮助。如有需要,也可提供技术培训和顾问服务

官网及相关示例、案例:

特别感谢JetBrains对开源项目支持:

JetBrains

solon's People

Contributors

noear avatar shaokeyibb avatar yazhuo-wyze avatar dudiao avatar liaocp666 avatar fzdwx avatar iyarnfog avatar dependabot[bot] avatar gollyhu avatar xsshuang avatar fuzi1996 avatar hulytu avatar limerence-zou avatar pmg1991 avatar blackbear2003 avatar troyzhxu avatar fs185085781 avatar cym1102 avatar aqnghu avatar zhangoranges avatar icazio avatar losebai avatar llm163520 avatar lionel524 avatar tomsun28 avatar lanbaba666 avatar zoze0 avatar iamd3 avatar hanxiang-li avatar chenchi2038 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.