Springboot使用SseEmitter实现:后端主动向前端推送数据

代码SseEmitterServer.javapackage gpt3.api.service;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.http.MediaType;impor
2023年04月20日 2,335次浏览

使用Linux的systemd运行jar包

服务定义文件vi /lib/systemd/system/[APP_NAME].service[Unit]Description=[APP_NAME][Service]WorkingDirectory=/optPrivateTmp=trueRestart=alwaysType=simpleExecS
2023年03月07日 1,094次浏览

Java公认通俗易懂的包名和类名

annotationaspectcacheconfigcontrollercoreeventexceptionfactoryfilterhandlerlistenermailmodelrepositorysecurityservicetaskthemeutils
Java 2023年02月28日 1,071次浏览

es转储工具elasticdump

elasticsearch 2022年09月25日 1,161次浏览

Jmeter分布式环境搭建

1. 压力机配置jmeter.propertiesserver_port=1099server.rmi.localport=1099server.rmi.ssl.disable=true启动:``2. 控制机配置remote_hosts=192.168.1.101:1099,192.168.1.10
2022年09月22日 847次浏览

Springboot通过kafka收集日志

一、logback依赖 <dependency> <groupId>com.github.danielwegener</groupId> <artifactId>logback-kafka-ap
Kafka 2022年09月13日 1,032次浏览

K8s部署apollo配置中心configServices内网IP问题

说明K8s部署apollo配置中,springboot启动后,从容器IP上获取配置,因为是内部IP,所以外部无法连接springboot集成apollo配置,如下app: id: 100001apollo: cacheDir: /tmp/apollo/ cluster: default me
Java 2022年07月07日 1,199次浏览

OpenAPI接口签名验签设计

OpenAPI接口验签设计1. 参数private static String url = “http://xxx.xxx.com/gateway”;private static String appId = “test”;private static String appKey = “3336AF
2022年05月26日 1,106次浏览

Java使用itextpdf向PDF上添加图片

添加依赖 <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId>
2021年08月09日 1,933次浏览

Java连接使用Ceph(S3对象存储)代码示例

**注:**代码示例带源于网络添加依赖 <dependencyManagement> <dependencies> <dependency> <groupId>com.amazon
2020年07月19日 1,647次浏览