DDD congestion model code example
Anemia model
We generally use three-tier architecture for business development:
Repository + Entity
Service + BO(Business Object)
Controller + VO(View Object)
In the three-tier architecture business development, we often use the development mode based on the anemia model. Anemia model refers to th ...
Posted by Xproterg^vi on Thu, 06 Feb 2020 21:40:17 -0800
The similarities and differences of HashMap and ConcurrentHashMap modification in single thread and multi thread traversal
1, Scenario introduction
JRBM has a demand for detecting the online situation of team Websocket:
The existing concurrenthashmap < teamid, jrbmsession > map, jrbmsession includes session and lastlivetime. The front end sends heartbeat to the service end through ws connection every 3s. After re ...
Posted by HaXoRL33T on Thu, 06 Feb 2020 04:28:58 -0800
Python web crawler and information extraction note 10 HTML content search method based on bs4 Library
Introduction to 01 requests Library of Python web crawler and information extraction notes
Notes on Python web crawler and information extraction 02 "there is a way to steal" from web crawler
Python web crawler and information extraction notes 03 requests library web crawler practice (5 i ...
Posted by sfmnetsys on Thu, 06 Feb 2020 01:20:50 -0800
Functions in Js
Function currification
The concept of corrilization: only a part of parameters is passed to the function to call it, and it returns a function to process the remaining parameters
Take an example:
var add = function(x) {
return function(y) {
return x + y;
};
};
var increment = add(1);
var addT ...
Posted by Kaboom on Thu, 06 Feb 2020 00:59:39 -0800
WPF learning note 8 dependency 2
2, Priority of dependent properties
Because WPF allows us to set the values of dependent properties in multiple places, we have to use a standard to guarantee the priority of values. For example, in the following example, we set the background color of the button in three places, which setting will ...
Posted by mikanmao on Wed, 05 Feb 2020 22:52:34 -0800
Spring MVC application (data binding - custom type converter, data format, data verification)
1, Ask questions
When spring MVC encapsulates custom type objects, JavaBean s are bound to the data submitted by the page one by one. Here's what you need to know:
1) all data submitted by the page are strings
2) attributes in JavaBean s, such as Integer age;
When binding data, the following oper ...
Posted by saeed42 on Wed, 05 Feb 2020 22:31:22 -0800
Principle of Bidirectional Binding of vue Data
1. Implementation principle of vue
Vue.js uses the attribute feature functionality provided by ES5, combined with the publish-subscribe mode, to publish messages to subscribers and trigger corresponding listening callbacks when data changes through Object.defineOrototype() to define set and get attribut ...
Posted by timc37 on Wed, 05 Feb 2020 19:00:06 -0800
Alibaba Java Development Manual Codes Effective Details-An Analysis of the Grinding Null Pointer Problem
1 Leader
Say nothing but read the manual guidelines first
The manual has helped us summarize common problem scenarios, but we still need to dig into the null pointer problem in order to get it right.
2 What is the null pointer in the world?
2.1 Official Resolution
A null is passed in when the app ...
Posted by leatherback on Wed, 05 Feb 2020 16:45:04 -0800
Getting started with javaScript
Getting started with javaScript
Article directory
Getting started with javaScript
1, Basic grammar
What can I do
Notes
Identifier, literal quantity and variable naming specification
data type
Data type conversion, operator
2, Common methods of string and array
Character method
Array method
3, ...
Posted by mahaguru on Wed, 05 Feb 2020 04:37:29 -0800
Understanding application.properties and application.yaml
In SpringBoot, there are two different formats for configuration files, one is properties and the other is yaml.
Although properties files are common, yaml is more concise and uses more scenarios than properties, and many open source projects are configured using yaml (for example, Hexo).In addition ...
Posted by martins on Tue, 04 Feb 2020 20:29:20 -0800