Java thread pool principle, China CITIC Bank Java written test questions

Status of thread pool (5 kinds): The AtomicInteger variable ctl is very powerful: the low 29 bits represent the number of threads in the thread pool, and the high 3 bits represent the running state of the thread pool: RUNNING: -1 << COUNT_ Bits, that is, the upper 3 bits are 111. The thread pool in this state will receive new tasks and ...

Posted by dolphinsnot on Sat, 20 Nov 2021 07:10:40 -0800

On the relationship among BeanDefinition, BeanDefinitionMap and rootbeandefinition

Through this article, you will gain: The relationship among rootbeandefinition, BeanDefinition and BeanDefinitionMap is its basic meaning Implementation subclass of BeanDefinition interface Meaning of beanClass member variable in BeanDefinition subclass Process for obtaining rootbeandefinition according to beanName 1, BeanDefinit ...

Posted by bombayduck on Sat, 20 Nov 2021 05:03:48 -0800

Spring MVC series - Introduction to spring MVC execution process and related Servlet classes

preface When sending an HTTP request, Spring MVC will perform a series of processing after receiving it, and then respond to the resource. How is the whole process handled? Execution process Core components Dispatcher servlet: front-end controller, which does not need to be developed by engineers. It is provided by the framework to uniforml ...

Posted by djrichwz on Sat, 20 Nov 2021 01:11:11 -0800

SpringMvc -- request forwarding and redirection

Request forwarding and redirection for spring MVC 1. Request forwarding of spring MVC -- thymeleafView thymeleafVIew view If the return value [view name] of the method processing the request is not prefixed, this view will be parsed by the view parser configured by spring MVC. This view is a thymeleaf view. As for why there is such a distinc ...

Posted by cwspen on Sat, 20 Nov 2021 00:03:04 -0800

Analysis of Spring event monitoring principle

1. Introduction to spring event monitoring The Spring framework provides a set of event publishing and listening mechanism. For developers, they can publish events as long as they hold the ApplicationContext instance, and they can receive and process events as long as they implement the ApplicationListener interface. A typical use example ...

Posted by TitanKing on Fri, 19 Nov 2021 22:50:36 -0800

Simple factory model of three factory models

1. Simple factory mode   1.1 meaning The simple factory pattern is also called the static method pattern (because the factory class defines a static method)In real life, factories are responsible for producing products; Similarly, in the design pattern, the simple factory pattern can be understood as a class responsible for production obj ...

Posted by Unholy Prayer on Fri, 19 Nov 2021 19:58:55 -0800

Two methods of integrating MongoDB in Spring series

MongoDB is the most popular NoSQL database, and SpringBoot is a best practice for using Spring. Today, let's talk about the two ways SpringBoot integrates MongoDB. The installation of MongoDB can be queried on the official website. The most convenient way for local development is to use Docker. 1, Preparatory work 1. Engineering generation ...

Posted by RobMs on Fri, 19 Nov 2021 18:33:00 -0800

Spring Annotation Development

Catalog Spring Configuration Data Source Role of data sources (connection pools) Steps for developing data sources   Manual creation of data sources   Spring Configuration Data Source   Extract jdbc configuration file Spring Annotation Development Spring original annotations New Spring Notes   Spring Integrated Jun ...

Posted by phphelpme on Fri, 19 Nov 2021 17:41:43 -0800

SpringMVC Silicon Valley Notes + Some Understanding Combined Notes

1. Introduction to Spring MVC 1. What is MVC MVC is the idea of a software architecture that divides software into models, views, and controllers M:Model, the model layer, refers to the JavaBean in a project and is used to process data JavaBean s fall into two categories: A class called entity class Bean: Stores business data specifica ...

Posted by robert_gsfame on Fri, 19 Nov 2021 15:42:04 -0800

spring transaction related

Java video tutorialhttps://www.xin3721.com/eschool/Javaxin3721/ When I went to the interview before, I was asked how to solve a spring nested transaction. When asked, I was speechless. It happened that the current project just used nested transactions. Distributed transactions are also being attempted. So now I have learned something about nest ...

Posted by jhoop2002 on Thu, 18 Nov 2021 08:41:15 -0800