Servlet series learning
1, ServletContext class
(1) , what is a ServletConfig object
ServletContext is an interface
ServletContext is a domain object
For a web project, Tomcat will only create a ServletContext object.
(2) , what is a domain object
**Domain object is an object that can be stored like a Map collection (d ...
Posted by cypr on Wed, 11 Mar 2020 04:58:08 -0700
Simple implementation of Android drawer menu (DrawerLayout+NavigationView)
Recently, I met the use of the drawer menu in my study. Write down a note.
First create the layout file as follows:
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dl"
xmln ...
Posted by antileon on Wed, 11 Mar 2020 00:09:25 -0700
Setting up the spring cloud config unified configuration center
Configuration center
Create several configuration files on git, as shown in the figure above. The file naming rules are {project}-{profile}. For example, the project name corresponding to the config client dev file is config client, and the version is: dev.
spring cloud config server
pom.xml
<de ...
Posted by ofi on Mon, 09 Mar 2020 00:26:03 -0700
The most suitable Ribbon tutorial for beginners
What is Ribbon
Ribbon is a customer service load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon.
It is not deployed independently like Spring Cloud service registry, configuration center and API gateway, but it exists in almost every Spring Cloud microservice. Including the declarative service call provi ...
Posted by washbucket on Sun, 08 Mar 2020 22:52:43 -0700
Source code learning of BeanFactoryPostProcessor and BeanPostProcessor of Spring hook
BeanFactoryPostProcessor and BeanPostProcessor are two interfaces that are exposed when initializing beans. They are similar to Aware (PS: for spring hook, please see) Detailed explanation of Spring hook method and hook interface This article also mainly studies the details of the specific hooks, so that we can be efficient in the actual ...
Posted by webhamster on Sun, 08 Mar 2020 22:36:17 -0700
The use and source code analysis of mybatis
Source code of the project: https://github.com/zhuquanwen/mybatis-learn/releases/tag/with-annotation
Construction process:
Based on the previous article, some processes are not described in detail. The previous source code has been attached. Please refer to the previous article: https://blog.csdn.net/u0 ...
Posted by davieboy on Sat, 07 Mar 2020 23:49:30 -0800
Hand in hand to teach you to implement a JSON parser!
1. background
JSON(JavaScript Object Notation) is a lightweight data exchange format. JSON has many advantages over XML, another data exchange format. For example, the readability is better and the space occupied is less.
In the field of web application development, thanks to the good support of JavaScript for JSON, JSON is more popular with de ...
Posted by symantec on Sat, 07 Mar 2020 21:03:43 -0800
Initialization of MyBatis source code analysis
Mybatis source code analysis I (initialization process)
Recently, I learned the source part of mybatis. Now I am going to record my understanding process while learning. This article mainly records the initial process of mybatis, mainly including the following points:
1. What did initialization do
2. How to parse the parameters of mybatis-confi ...
Posted by cosmo7 on Sat, 07 Mar 2020 19:37:44 -0800
What do you know about spring's dependency injection?
A previous article: The difference between dependency lookup and dependency injection , this article talks about dependency lookup and dependency injection as the means to implement IOC. We use more dependency injection in our actual work. How much do you know about the specific patterns and types of ...
Posted by DannyM on Sat, 07 Mar 2020 18:40:34 -0800
Token is set up in the basic configuration of official account.
WeChat official account / development / basic setup / server configuration page
URL fill in your server address
The Token value is the value set by response.php
The content of the response.php file is as follows:
<?php
traceHttp();
define("TOKEN", "kiking");
$wechatObj = new wechatCallbacka ...
Posted by catnip_uk on Sat, 07 Mar 2020 06:13:21 -0800