基于Netty实现的netty-socketio实现WebSocket

介绍 netty-socketio是socket.io使用Java语言基于Netty网络库编写的WebSocket库.功能非常强大,简单易用,稳定可靠. <dependency> <groupId>com.corundumstudio.socketio</groupId> ...

解压HTTP API的GZIP压缩数据

1.对Java后端的请求HttpURLConnection对象中的消息头设置压缩 connection.setRequestProperty("Accept-Encoding", "gzip, deflate"); 2.发送请求后获取response中的content-encoding connec...

Spring Boot中的默认日志logback

Spring boot通过application.properties来配置logback功能非常弱,需要通过xml配置文件来配置。 <?xml version="1.0" encoding="UTF-8" ?> <configuration debug="false"> <!--定义日志文...

2018/02/23 13:30
1.5K
Spring boot配置跨域

If you are using Spring Boot, it is recommended to just declare a WebMvcConfigurerbean as following: @Configuration public class MyConfiguration { @Bean public WebMvcCo...

2018/01/29 14:50
155

没有更多内容

加载失败,请刷新页面