A more modern framework for Java application development: faster, smaller, and freer. No Spring, no Servlet, no JavaEE;Independent lightweight ecology. The main frame is only 0.1 MB.


@Controller
public class App {
    public static void main(String[] args) {
        Solon.start(App.class, args);
    }

    @Get
    @Socket
    @Mapping("/hello")
    public String hello(@Param(defaultValue = "java") String name) {
        return String.format("Hello %s!", name);
    }
}

Getting started exploration video (user recorded):

Projects relative to Spring Boot and Spring Cloud:

  • Startup is 5 to 10 times faster. (faster)
  • qps is 2 to 3 times higher. (higher)
  • Save 1/3 ~ 1/2 of memory at runtime. (less)
  • Packing can be reduced to 1/2 ~ 1/10; for example, 300Mb becomes 23Mb. (smaller)
  • Registration discovery based on service name corresponds to k8s svc
  • Support Service Mesh architecture deployment scheme
  • Support jdk8, jdk11, jdk17, jdk19 at the same time
  • No Spring, no Servlet, no JavaEE; independent lightweight ecology

This update:

  • Added solon.web.webdav plug-in (similar to network disk capabilities)
  • Added solon.logging.simple plugin (replacing solon.logging.impl)
  • Added solon.scheduling plugin
  • Added solon.scheduling.simple plugin (replaces solon.schedule; more standardized)
  • Added solon.scheduling.quartz plugin (replaces quartz-solon-plugin; more standardized)
  • Add quartz-solon-cloud-plugin plugin
  • The plug-in quartz-solon-plugin increases function execution support, increases persistence and remote management support
  • Plug-in local-solon-cloud-plugin adds server configuration support (can only point to local, used to store data)
  • Plugin solon.web.staticfiles allows maxAge=-1 configuration (thus canceling URLConnection caching)
  • The plugin solon.web.staticfiles adds resource warehouse warm-up support
  • The plug-in solon.boot.jlhttp adjusts the server code and no longer restricts the method (used to support webdav)
  • The plug-in solon.boot adjusts the configuration of coreTheads and maxTheads, and supports part number mode x16 (representing 16 times the number of cpu cores)
  • Add enableWebSocketMvc, enableSocketMvc switch control
  • Add the mybatis-solon-plugin plugin to check whether Mappers exist and prompt
  • Add DownloadedFile, UploadedFile to get attributes, the original field is marked as deprecated (it will be changed to private later)
  • Adjust the solon.cache.* plug-ins to open the client inside CacheService
  • Adjust ctx.body() to give priority to the encoding on the request content-type
  • Fix the problem of leaving empty cookies when servletContext uses cookieRemove() to remove cookies
  • Fix the problem that static files will be cached in debug mode
  • Test the use of nami as an annotated http client
  • Upgrade smart-http to 1.1.19
  • Upgrade wood to 1.0.7
  • Upgrade sqltoy to 5.2.25

Learn more about Solon:

Project repository:

#Java #domestic #lightweight #Solon #v1114 #video #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *