Servlet forward and include methods

Original link: http://www.yiidian.com/servlet/servlet-dispatcher.html Request Forwarding and Inclusion Using Servlet The RequestDispatcher interface provides the ability to forward requests to another resource, which may be Html, Servlet, or Jsp.The interface can also be used for content containing other resources. Method of 1 RequestDispatcher ...

Posted by stevengunn on Sat, 14 Mar 2020 15:55:00 -0700

Android TextView drawText BaseLine understanding

Android TextView drawText BaseLine understanding Solution: how to set the vertical center of drawn text in the box 1. getHeight/2 is set to drawText to draw coordinates, which cannot be centered Upper code XML: <com.denganzhi.cusomerwidget.View.MyView android:layout_width="100dp" ...

Posted by Masna on Sat, 14 Mar 2020 08:09:40 -0700

JAVA EE -- XML (overview of XML files, constraints of XML files, parsing of XML files, reflection of XML)

Article directory 1, Overview of XML files 1. XML file 2. Sample XML file Two, the restriction of XML file 1. Constraints overview 2. DTD constraint example 3, Analysis of XML file 1. Overview of XML file parsing 2. DOM parsing 3. SAX parsing 4. DOM4J parsing 5. JDOM parsing 6. Comparison of sev ...

Posted by capetonian on Fri, 13 Mar 2020 19:35:06 -0700

Understanding Java persistence framework under Mybatis (connection pooling, caching, and annotation development)

Preface It's recommended that you read this article first (above Mybatis, the Java persistence framework for first time) Click to visit 9. Mybatis Connection Pool and Transaction Depth 1. Connection Pool Technology for Mybatis Connection pooling technology in MBatis uses its own connection pooli ...

Posted by Dave3765 on Fri, 13 Mar 2020 18:28:19 -0700

MyBatis many to one, one to many

Multiple students, corresponding to a teacher; For students, multiple students are related to one teacher For a teacher, there are many students in a teacher Many to one 1. Create the corresponding sql (mybatis.student, mybatis.teacher); 2 2. Import the corresponding dependency (pom.xml) <depend ...

Posted by spstieng on Thu, 12 Mar 2020 23:26:39 -0700

Spring day 2: preliminary understanding of concepts of AOP, IOC and DI

The core of Spring Spring's core concepts are inversion of control (Ioc), aspect oriented programming (AOP), and dependency injection (DI)! These three core technologies are the basis of learning spring, and most of the others are based on their integration. Let's introduce them separately Spring's of ...

Posted by jediman on Thu, 12 Mar 2020 21:17:43 -0700

@EnableAutoConfiguration loads custom META-INF without scanning

In this paper, a simple simulation of auto-configuration is performed to understand the process of auto-configuration.And we wrote a small example to test it. Automatic assembly: The purpose is to load the required module components without the developer using @ComponentScan @EnableXXX. SpringBoot use ...

Posted by danesc on Thu, 12 Mar 2020 17:48:43 -0700

How to Solve the Transverse Override Security in the Development of E-commerce Receipt Address Module

What is horizontal/vertical overstepping? Horizontal Override: Horizontal override refers to an attacker attempting to access resources of a user with the same privileges as he has.Vertical Override: Vertical override refers to a low-level attacker attempting to access resources of high-level users. How can I prevent the lateral overstepping ...

Posted by edwardtilbury on Thu, 12 Mar 2020 09:47:57 -0700

The fastest building steps in the history of ssm

Details of SSM development process SSM execution flow chart: Step 1: create database, create table statement, use mysql database, Navicat for MySQL visual database management tool. Step 2: create Maven web project structure and use IDEA development tools for development. Step 3: create a project direc ...

Posted by AbeFroman on Thu, 12 Mar 2020 01:57:45 -0700

IoC in spring

Article directory 1. Spring's IoC core container 2. Details of spring's bean management 1. Three ways to create bean s 2. Scope of bean 3. Life cycle of bean object 3. Dependency injection in spring 1. Use constructor 2. Use set method (more commonly used) 3. Use notes 4.Spring configuration note ...

Posted by adrian_melange on Thu, 12 Mar 2020 01:58:01 -0700