How to Use websocket to Realize Front-end and Back-end Communication

websocket communication is a very interesting and useful way of communication. The ways of using it are as follows:   The first step is to introduce dependencies in the pom.xml file because spring boot integrates websocket well. <dependency> <groupId>org.springframework.boot</groupId> <artifac ...

Posted by ILYAS415 on Sat, 05 Oct 2019 22:44:57 -0700

springboot returns json and xml

Summary: Return data in json, xml format      @XmlRootElement <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency>   SpringBoot returns json and xml https://www.jianshu.com/p/231b5ff ...

Posted by zamzon on Sat, 05 Oct 2019 21:58:30 -0700

[SpringBoot 2.x] - Thymeleaf, Web, Tomcat and Favicon in SpringBoot Web Development

github: https://github.com/Ccww-lx/Sp... Module: spring-boot-starter-base-web Web development is a very important part of development. The core content of Web development mainly includes embedded Servlet container and Spring MVC. More importantly, Spring Boot `provides a quick and convenient way for web development. It uses dependency jar: sp ...

Posted by virva on Sat, 05 Oct 2019 20:47:38 -0700

Spring MVC: Conceptual Model AndView

Summary ModelAndView is a Spring MVC gadget, a holder, for holding the following information: Object view - View The actual type may be View or String. When the type is View, it means that this is an actual View object. When the type is String, it means that this is the name of the target View obje ...

Posted by gijew on Sat, 05 Oct 2019 19:43:18 -0700

Spring cloud project configuration extension loaded from local config directory

Inspired by Ali Open Source Nacos, this paper loads configuration from Nacos service to application after application start-up, and wonders whether loading configuration can be loaded from local storage during local development, which can also speed up development efficiency. First Let's look at the bootstrap.yaml configuration for the Spring C ...

Posted by lauthiamkok on Sat, 05 Oct 2019 19:19:15 -0700

Eureka Actual Warfare-5 [Enabling https]

The last one is mainly about opening http basic authentication. From a security point of view, based on base64 encoding, it is easy to be cracked after being caught, and it is very unsafe in the public network. This article discusses how to open https in eureka server and eureka client.   Public Dependent pom Files <parent> ...

Posted by LightningSt on Sat, 05 Oct 2019 16:37:57 -0700

ribbon load balancing in spring cloud learning

ribbon is responsible for load balancing of services. Spring cloud has two kinds of service invocation methods, one is ribbon+restTemplate, the other is feign. ribbon is simple to use as follows: 1. Introducing Dependence <dependency> <groupId>org.springframework.cloud</groupId ...

Posted by Wales on Sat, 05 Oct 2019 14:14:17 -0700

Question of accessing injected variables after injection of Spring configuration files

Code directly 1.Class OneClass public class OneClass { String s; public void setS(String s) { this.s = s; } } 2.Class Demo public class Demo { OneClass oneClass; public void setOneClass(OneClass oneClass) { this.oneClass = oneClass; } { System.out ...

Posted by AdamDowning on Sat, 05 Oct 2019 11:47:32 -0700

spring cloud gateway source code parsing

1.gateway versus zuul 1.zuul is based on servlet 2.5 and compatible with servlet 3.0. It uses blocking API and does not support long connections such as websocket. 2.Gateway is based on spring 5, Reactor and spring boot 2. It uses non-blocking API, supports websocket, integrates perfectly with spri ...

Posted by noobyphpchick on Sat, 05 Oct 2019 10:21:41 -0700

Hello World: Introduction to dubbo

Links to the original text: http://www.cnblogs.com/JAYIT/p/9642389.html dubbo official documents: http://dubbo.apache.org/zh-cn/docs/user/quick-start.html demo based on spring coloud: http://start.dubbo.io The introduction of dubbo ...

Posted by acidglitter on Sat, 05 Oct 2019 08:51:21 -0700