solon.boot.jlhttp
<dependency>
<groupId>org.noear</groupId>
<artifactId>solon.boot.jlhttp</artifactId>
</dependency>
1、描述
通讯扩展插件,基于 JlHttp 的http信号服务适配。可用于 Api 开发、Rpc 开发、Mvc web 开发。
当项目中引入 solon.boot.smarthttp
或 solon.boot.jetty
或 solon.boot.undertow
插件时,会自动不启用。
支持信号:
信号 | 说明 |
---|---|
http | 默认端口 8080,可由 server.port 或 server.http.port 配置 |
2、应用示例
public class DemoApp {
public static void main(String[] args) {
Solon.start(DemoApp.class, args);
}
}
@Controller
public class DemoController{
@Mapping("/hello")
public String hello(){
return "Hello world!";
}
}