Dispatcher Servlet Initialization for Spring MVC Source Learning

Servlet life cycle (review) 1. The servlet container initializes the corresponding servlet call init() method after receiving the first http request Initialized servlets are singletons, and how many servlet instances will there be in web.xml when you configure how many servlets Configuring < lo ...

Posted on Fri, 09 Aug 2019 01:53:57 -0700 by BLeez

One of Spring's Cores: What does Spring's configuration file do?

The first two articles explained the concepts of IOC and DI and why we need them. This article will continue with the definition of Spring IOC container, xml configuration file, which will clarify two questions: 1. The role of Spring XML configuration files. (Inheritance with IOC thought) 2. If the d ...

Posted on Thu, 08 Aug 2019 19:19:11 -0700 by sader

Start Load Initialization Process of Spring Bean Container

1. DESC Spring's handling of beanFactory 2. CODE public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. prepareRefresh(); // Tell the subclass to refresh the internal bean factory. ConfigurableListableBeanFactor ...

Posted on Thu, 08 Aug 2019 04:55:50 -0700 by Tjorriemorrie

Tomcat uses thread pools to configure high concurrent connections

1: Configure executor properties Open the / conf/server.xml file and configure a thread pool before Connector: <Executor name="tomcatThreadPool" namePrefix="tomcatThreadPool-" maxThreads="1000" maxIdleTime="300000" minSpareThreads="200"/> Important parameter description:Name: The name o ...

Posted on Wed, 07 Aug 2019 19:28:16 -0700 by MikeUK

Spring cache annotations @CachePut, @CacheEvict, @CacheConfig are used

Links to the original text: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 ** This article reproduces: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 Catalog @Cacheable @CachePut @CacheEvict @CacheConfig @Cacheable @ Cacheable i ...

Posted on Tue, 06 Aug 2019 03:24:18 -0700 by drtanz

SSM Framework Learning-Spring MVC

SSM Framework Learning (3) - Spring MVC I. MVC Model II. Sring Web MVC Brief Introduction and Work Flow 2.1 Introduction to Spring Web MVC 2.2 Spring Web MVC workflow 3. Building Spring Web MVC working environment 4. Annotation-based spring development V. Receiving and Passing Page Value 5.1 Page ...

Posted on Tue, 06 Aug 2019 02:16:50 -0700 by flycast

Android >> 44. Material Design sliding menu

DrawerLayout It's simple: <androidx.drawerlayout.widget.DrawerLayout android:id="@+id/drawer_layout" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent"> <FrameLayout xmlns:android="http:// ...

Posted on Sun, 04 Aug 2019 22:36:37 -0700 by philip@hux.co.za

New Mybatis-xml File Deployment and Simple Application

Initial Mybatis-xml file deployment and simple application (Dao mode) Tools used mybatis-3.2.7.jar mysql-connector-java-8.0.16.jar mybatis myeclipse mysql5.5.15 navicat Use the tool to search for it by oneself! ____________ 1. Open Navicat to create a table for testing mysql creates database CREAT ...

Posted on Sun, 04 Aug 2019 21:23:02 -0700 by ckjian

Marco's Java

Preface Has Shiro+SMM integrated Maven project gained some results after reading the first (second) chapters? Believe that the whole process is straightened out, understand, then encounter similar project ideas will not be so messy. So if you think that the friends who have mastered the previous conte ...

Posted on Sun, 04 Aug 2019 00:44:26 -0700 by cowfish

Strts2 Result View and Action Type

Result View 1. Result View Concept The return value of action method is String type. It returns the name of the corresponding result view. In action class, return keyword is used to express it. In corresponding struts.xml file, tag is used to express it.2. Result View Properties <result name="succe ...

Posted on Sun, 04 Aug 2019 00:15:57 -0700 by first_lady_the_queen