Simple message broadcast and unicast of Websocket using Spring

Recently, I am doing my graduation project. I need to use Websocket to push messages. Looking at the documents on the Spring official website, I found that Spring has extended the functions of Websocket too much, and introduced the concepts of STOMP and Broker( https://spring.io/guides/gs/messaging-stomp-websocket/ ). But my project doesn't us ...

Posted on Wed, 25 Mar 2020 10:09:00 -0400 by gman-03

7. SpringCloud Chapter VII, Upgrade Chapter, Upgrade Overview and Rest Micro Service Case Building

Chapter Six of SpringCloud, Upgrade, Upgrade Overview and Rest Micro-Service Case Building 1. Changes after Springcloud upgrade Each of the original frameworks has changed since the springcloud upgrade was found. 2. Rest Micro-Service Construction Case Project Make a microservice generic case with the order module, Consumer consumer [or ...

Posted on Wed, 25 Mar 2020 02:12:12 -0400 by davitz38

Operating Redis in java code: single machine redis, cluster redis (spring+redis integration)

I. Preparation For some installations of redis, check out my articles to install them yourself: Redis directory. A web project, and one of the github projects I've been working on here is: https://github.com/gubaijin/buildmavenweb Edits client dependency package Jedis importing java:<dependency> <grou ...

Posted on Tue, 24 Mar 2020 20:54:51 -0400 by eekeek

Hook method and hook interface in spring

spring framework has a high scalability. We can extend spring flexibly through these interfaces. 1. Aware interface Spring provides a variety of Aware interfaces, which is convenient to get the current running environment from the context. Several common sub interfaces are: ApplicationContextAware, BeanClassLoaderAware, BeanFactoryAware, Be ...

Posted on Tue, 24 Mar 2020 07:59:11 -0400 by Verrou

Spring boot development series - experience in developing WebSocket

1, foreword In some project scenarios, WebSocket is a powerful tool, but after all, there are few general application scenarios. While still remembering, write down some experiences in the development process, so as not to forget when it is needed again in a year and a half. I have written a "WebSocket, no polling" before, and talked ...

Posted on Tue, 24 Mar 2020 06:40:05 -0400 by PurpleMonkey

RestFul API unified format return + global exception handling

Background Today, with the prevalence of distributed and microservices, most of the projects adopt the microservice framework, with the front and back end separated. The front-end interacts with the back-end. The front-end requests the URL path according to the agreement, and passes in the relevant parameters. The back-end server receives the r ...

Posted on Mon, 23 Mar 2020 23:48:31 -0400 by AliasZero

SpringBoot Learning Notes-010

4.8. Configuring an embedded Servlet container SpringBoot defaults to Tomcat as the embedded Servlet container: version 9.0.31 Question? 4.8.1. How to customize and modify the configuration of the Servlet container 1. Modify server-related configurations (see parameters) ServerProperties Class; server.port=8081 server.servlet.context-path= /ep ...

Posted on Mon, 23 Mar 2020 13:06:36 -0400 by php_dev_101

Talk about Token renewal processing of OAuth 2.0

Token verification logic // CheckTokenEndpoint.checkToken @RequestMapping(value = "/oauth/check_token") @ResponseBody public Map<String, ?> checkToken(@RequestParam("token") String value) { // Query all the information of the token stored in the tokenStore according to the token OAuth2AccessToken token = resourceServerTokenServi ...

Posted on Mon, 23 Mar 2020 03:07:58 -0400 by adamhhh

springboot integrates mybatis and sets up multiple data sources

Springboot is now more popular than spring because it is simple, fast and convenient. Springboot was originally designed to simplify the configuration of spring by integrating new functionality faster in development, simplifying or reducing related configurations.Springboot is based on convention over configuration.All frameworks are integrated ...

Posted on Sun, 22 Mar 2020 13:09:25 -0400 by BornForCode

Application instances of feign (including applying springCloud projects and not in springCloud)

1. An instance of feign used in a project other than SpringCloud (data exchanged is not an object). Consumer side of service: maven packages that need to be imported (where feign-core represents the package that needs to be imported when feign is used, while feign-jackson is used to exchange data between service consumers and producers often wi ...

Posted on Sun, 22 Mar 2020 12:15:02 -0400 by gotDNS