SpringBoot2.x learning - integrated Mybatis framework
1, Add startup dependency
Add dependency in maven file of spring boot project as follows:
<properties>
<java.version>1.8</java.version>
<druid.version>1.1.13</druid.version>
<mybatis.version>2.1.0</mybatis.version>
<druid ...
Posted by AngelG107 on Sat, 08 Feb 2020 13:55:09 +0100
Views on several methods of dependency injection in spring
Views on several methods of dependency injection in spring
IOC(inversion of Control):
It is an inversion of the direction in which resources are acquired by the container that actively provides the resources acquired by the component, rather than being created by the container itself.All the compo ...
Posted by daok on Sat, 08 Feb 2020 09:18:21 +0100
Talk about ribbon timeout settings
order
This article mainly studies ribbon timeout settings
To configure
Example
ribbon:
ReadTimeout: 10000
ConnectTimeout: 10000
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 1
eureka:
enabled: true
RibbonClientConfiguration
spring-cloud-netflix-ribbon-2.0.0.RELEASE-sources.jar!/org/springframework/cloud/netflix/ribbon/RibbonClientC ...
Posted by Jason Batten on Fri, 07 Feb 2020 19:28:37 +0100
Common serialization methods for redis
Generalization
The main serialization methods of redis are string serialization, json serialization, xml serialization, jdk serialization. The implementation classes of org.springframework.data.redis.serializer.RedisSerializer can be consulted. For json serialization, jackson serialization is the official implementation, and fastjson has corre ...
Posted by linkin on Fri, 07 Feb 2020 18:16:29 +0100
SpringBoot(23) integrates socket.io server and client for communication
1. Preface
What is the difference between websocket and socket.io?
websocket
A technology for two-way real-time communication between client and server
While mainstream browsers already support it, there may be incompatibilities when using it
Suitable for client and node-based server use
socket.io
Encapsulate WebSocket, AJAX, and other comm ...
Posted by pixelsoul on Fri, 07 Feb 2020 18:03:22 +0100
SpringBoot global configuration file application.yml
From other frameworks, we have our own configuration files. hibernate has hbm, mybatis has properties, and SpringBoot also has global configuration files.
Spring boot uses a global configuration file, and the name of the configuration file is fixed. (you can start by yourself, but you need to specif ...
Posted by keyboard on Fri, 07 Feb 2020 14:53:49 +0100
Spring annotation driven development learning
Learning route
1. container
spring believes that all components should be placed in the container and used through the automatic assembly of the containerWhen developing based on annotations, the configuration class is the same as the previous configuration file
@Configuration indicates that this is ...
Posted by EOS on Fri, 07 Feb 2020 14:28:21 +0100
Detailed explanation of distributed service CAS single point login and JAVA-SSM implementation of single point login
There are many sub-systems in the distributed system, and these sub-systems are deployed in different servers, so it is impossible to use the traditional session mode, we need to use the related single sign on technology to solve it
1. What is single sign on
Single Sign On, or SSO for short, is one ...
Posted by mithu_sree on Fri, 07 Feb 2020 10:18:38 +0100
Using DDD to develop classification module in e-commerce system
Using DDD to develop the classification module of e-commerce system.
We will discuss two commodity classifications in e-commerce system, namely, the commodity classification of e-commerce system category and the commodity classification customized by merchants.
The domain model is used to implement thes ...
Posted by BobcatM on Fri, 07 Feb 2020 09:25:21 +0100
Initialization process of Spring MVC-01-DispatchServlet
1, Initialization process of dispatcher Servlet
The dispatcher servlet inherits the HttpServletBean class, which contains the initialization method init(), whose code is as follows:
/**
* Map config parameters onto bean properties of this servlet, and
* invoke subclass initialization.
* @throws ServletException if bean properties are in ...
Posted by artfuldrone on Thu, 06 Feb 2020 12:05:32 +0100