principle: Simplify and reduce, return to the original, go into battle lightly, and develop efficiently
tio-boot is a high-performance web framework based on Java AIO and t-io. It's asynchronous, non-blocking, and capable of handling tens of thousands of concurrent connections on a single server. This makes it particularly suitable for the development of high-performance web applications.
- Fast Startup: tio-boot typically starts up in under one second, providing a quicker launch.
- Compilation to Binary: It supports compilation to binary files through GraalVM, allowing it to run in non-JVM environments.
- Integration with External Services: tio-boot supports integration with various external services such as MySQL, Redis, MQ, XXL-JOB, etc.
maven center tio-boot
pom.xml
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<tio-boot.version>1.4.1</tio-boot.version>
</properties>
<dependencies>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>tio-boot</artifactId>
<version>${tio-boot.version}</version>
</dependency>
</dependencies>
package com.litongjava.tio.web.hello;
import com.litongjava.jfinal.aop.annotation.AComponentScan;
import com.litongjava.tio.boot.TioApplication;
@AComponentScan
public class HelloApp {
public static void main(String[] args) {
long start = System.currentTimeMillis();
TioApplication.run(HelloApp.class, args);
long end = System.currentTimeMillis();
System.out.println((end - start) + "ms");
}
}
package com.litongjava.tio.web.hello;
import com.litongjava.tio.http.server.annotation.RequestPath;
@RequestPath("/")
public class IndexController {
@RequestPath()
public String index() {
return "index";
}
}
If you encounter any issues during usage, please contact me using the information provided.
Fork and PR
- WeChat: jdk131219
- Email: litongjava@qq.com