Simple demo case of hand written spring MVC
1.springmvc is essentially the encapsulation of servlet s. When a user sends a request, the working principle of springmvc is as shown in the figure:
The process is as follows:
1. The user sends the request to the front-end controller dispatcher servlet.
2. The dispatcher servlet receives the request to call the HandlerMappin ...
Posted by david4ie on Sun, 01 Dec 2019 09:05:53 -0800
spring boot+mybatis building project
I. create the spring boot project
1.File->New->Project
image.png
2. Select Spring Initializr, then select the default url and click [Next]:
2.jpg
3. Modify project information
3.jpg
4. Select the template of the project
4.jpg
5.jpg
5. Fill in Project name and project location, and then click Fin ...
Posted by guru2k9 on Sun, 01 Dec 2019 06:13:00 -0800
web source of spring Transformation: mooc.com
Preface
We wrote the foundation of spring yesterday, and continue to write the knowledge related to web today
The use of spring web
Import dependency first
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version& ...
Posted by monarlte on Sat, 30 Nov 2019 22:14:58 -0800
[JVM] troubleshooting
The call scenario of jetty is: in order to support the annotation mode in the Servlet specification (so that it is no longer necessary to describe the deployment of the Servlet in the web.xml file and simplify the development process), jetty will scan the class and lib packages when it starts, register the Servlet and Listener declared in the a ...
Posted by fukas on Sat, 30 Nov 2019 18:18:10 -0800
Hadoop HA double namenode construction
Machine distribution
hadoop1 192.168.56121
hadoop2 192.168.56122
hadoop3 192.168.56123
Preparing the installation package
jdk-7u71-linux-x64.tar.gz
zookeeper-3.4.9.tar.gz
hadoop-2.9.2.tar.gz
Upload the installation package to the / usr/local directory of three machines and extract it
Configure hosts
echo "192.168.56.121 hadoop1" >> /etc/ ...
Posted by bungychicago on Fri, 29 Nov 2019 09:16:17 -0800
No.50 --- opencv calls camera for face detection
Dlib technology comes from the paper of some college Daniel. It uses 68 feature points such as eyes, facial contour, bridge of nose, eyebrows and mouth to represent facial features.
import cv2
import face_recognition as fr
from PIL import Image, ImageDraw
import numpy as np
facial_features = ['chin', 'left_eyebrow', 'right_ey ...
Posted by klance on Thu, 28 Nov 2019 13:25:18 -0800
OpenCV linemod learning operation
Recently, I am working on the object pose recognition program, and I have read many related papers. However, it can't be mastered just by looking at it. It is found that there is implementation of linemod in opencv. I'm going to look at this method first. I'll talk about the specific implementation process in the future and see ...
Posted by sunilmadhav on Thu, 28 Nov 2019 09:10:22 -0800
Android fragment for static loading
The interface after static loading is as follows. The two fragments are located on the left and right of an activity respectively:
There is a Fragment on the left and a Fragment on the right, which just fills the whole activity. There can be multiple fragments in an activity. The meaning of fragments is that the interface can be divided int ...
Posted by iyia12co on Thu, 28 Nov 2019 04:01:54 -0800
Customize your own Eureka management interface
The interface of Eureka server can be customized, and the method is relatively simple. Let's take a look at the modification method.
In some companies, the interface of service registration center may need to be completely customized. It needs to carry some company features and elements. If so, the content of this chapter can help you, and the ...
Posted by mb81 on Thu, 28 Nov 2019 01:08:27 -0800
nginx+tomcat to configure load balancing
The first step is to download tomcat and configure the multi tomcat running environment;
① download tomcat, extract two copies to D:\tomcats directory, and rename them:
tomcat_8080
tomcat_8090
② replace the Catalina home in startup.bat and catalina.bat under the bin directory of tomcat_withcatalina home
③ replace the Catal ...
Posted by dcooper on Wed, 27 Nov 2019 09:54:04 -0800