Snack3 for java
A mini JSON framework
Based on jdk8, 60kb. It has serialization and deserialization, parsing and transformation, and supports Json path query.
Snack3 borrows al ...
Posted on Wed, 27 Nov 2019 03:49:37 -0500 by gregsmith
I have always had a question about using mybatis spring Mybatis source (I) overview As I mentioned in, the declaration cycle of SqlSession and Mapper objects is method level, that is to say, the SqlSession and Mapper objects of each request are different, which is a non singleton Bean. But after integrating with Spring, why can we directly inje ...
Posted on Wed, 27 Nov 2019 00:50:14 -0500 by xeross
As always, dynamic programming is a priority for String Problems~
This problem can be solved by sliding window strategy. Set the two ends of the begin and end pointer to mark the window, and set up a HashSet to save the elements in the window. When the end corresponding element does not exist in the HashSet, the end mo ...
Posted on Tue, 26 Nov 2019 17:38:05 -0500 by Motionographer
The main application scenario of redis multiple data sources is to use multiple redis servers or multiple redis libraries. This paper adopts the fastdep dependency integration framework to quickly integrate redis multiple data sources and lettuce connection pool. Only after introducing dependency, configure the connection inf ...
Posted on Tue, 26 Nov 2019 15:36:11 -0500 by jh21236
Muke net front end zero foundation - CSS page layout foundation 3-3 programming practice
Boys and girls, we learned the layout of the Holy Grail in the layout of the web page. Next, according to the renderings, we wrote out the page with the following requirements:
(1) full screen display of page on Browser
(2) set the minim ...
Posted on Tue, 26 Nov 2019 15:26:33 -0500 by mikeyinsane
Feign is a declarative web service client. When using methods, define an interface and annotate it. Feign supports pluggable encoders and decoders. Spring Cloud encapsulates feign to support spring MVC and HttpMessageConverters. Feign can be combined with Eureka and Ribbon to support load balancing.
Most o ...
Posted on Tue, 26 Nov 2019 15:16:12 -0500 by Carolyn
I. concurrent HashMap concurrent container
ConcurrentHashMap is an upgraded version of HashMap. Although HashMap is highly efficient, it is an unsafe container for threads, and it can no longer be used in multi-threaded environment. While HashTable is thread safe, it uses a less efficient synchronized and synchronized sad ...
Posted on Tue, 26 Nov 2019 12:01:15 -0500 by rockintyler
Logback delegates the task of writing log events to the appender component. SiftingAppender, as its name implies, filters log events. Specifically:
For the log events that Logback delegates to it, SiftingAppender will make some distinctions on the log events, and then different events SiftingAppender will delegate different Appende ...
Posted on Tue, 26 Nov 2019 11:22:56 -0500 by premiso
After checking the relevant components,
A fundamental change has taken place in the pom.xml file
1. This is the pom file of the simplest project
This is the pom file of projects with web, mongodb, mybatis, redis, etc. checked
Comparing the two pom files, we can see that the main content of the project is added in ...
Posted on Tue, 26 Nov 2019 11:12:31 -0500 by manwhoeatsrats
Six states of thread
Six state definitions: java.lang.Thread.State
New: the thread state of a thread that has not been started.
Runnable: the thread state of the runnable thread, waiting for CPU scheduling.
Blocked: the thread status waiting for the monitor to lock.
Blocked in synchronized synchronization block or method.
Waiting: the t ...
Posted on Tue, 26 Nov 2019 09:18:25 -0500 by plaggypig