How Mybatis's method maps to XML

Preface Above How the Mapper interface of Mybatis executes SQL You learned that Mapper executes SQL through a dynamic proxy, but there is no detailed description of how the method maps, including method names, return values, parameters, and so on; how these relate to xxMapper.xml. Method Name Mapping The purpose of caching MapperMethod s me ...

Posted by midgar777 on Fri, 08 Nov 2019 18:08:27 -0800

Rebuild control file

1 Description The reconstruction control file can only be used in case of necessity. It is generally used in the following situations: 1 all current copies of the control file have been lost or are corrupted 2 you are restoring a backup in which the control file is corrupted or missing 3 you need to change a hard li ...

Posted by rsmarsha on Fri, 08 Nov 2019 11:23:15 -0800

Exceptions

nested exception Before we learn about SPL exceptions, let's take a look at nested exceptions. As the name implies, nested exceptions are nested inside the Exception. An Exception is thrown, and an Exception is thrown after the catch arrives. In this case, nested exceptions can be obtained by the getPrevious method of the Exception base class; ...

Posted by mdowling on Fri, 08 Nov 2019 10:15:14 -0800

Use Mybatis every day, but do you really know how it works?

Recently, I want to write a mybatis paging plug-in, but before I write the plug-in, I must understand the specific working principle of mybatis, so I will start to work by referring to other blogs and reading the source code. Core components: SqlSession Executor StatementHandler ParameterHandler ResultSetHandler TypeHandler MappedStatement Co ...

Posted by neridaj on Fri, 08 Nov 2019 04:12:39 -0800

SQL Server Alwayson master-slave database account synchronization

After we set up Alwayson, there is no corresponding account in the database under the secondary copy. How to synchronize the account? How to set the account synchronization without knowing the password.   We can use SP -- sp ﹣ help ﹣ revlog in. This stored procedure is created on the primary copy. When executing, the SQL command will be gen ...

Posted by shapiro125 on Thu, 07 Nov 2019 08:47:03 -0800

A record of oracle 11g data import

1. Import Oracle database data into test library environment 172.15.1.51 root  kic@test 172.15.1.52 root  Generally, the data is imported into the environment of 52 (the configuration is relatively low), and then the data is imported into the environment of 51 (the environment used in this document) [root@NC-TEST ~]# df -h Filesystem ...

Posted by alcapone on Thu, 07 Nov 2019 07:59:43 -0800

Mysql from entry to forgetting

Made By Herolh Catalog [TOC] 1. What is MySQL Server side Client Mysql database MySQL is the most popular relational database management system, and MySQL is one of the best RDBMS(Relational Database Management System) application software in WEB application. It is developed by MySQL AB company in Sweden and currently belongs to Oracle co ...

Posted by phpPete on Tue, 05 Nov 2019 20:44:00 -0800

Install FreeTDS under CentOS

Guide reading Official website: http://www.freetds.org Download address: http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz This software can connect MS SQL server and Sybase database with Linux and Unix Installation and configuration Download the FreeTDS installation package to the server first wget -c http://ibiblio.org/ ...

Posted by ccjob2 on Tue, 05 Nov 2019 13:34:30 -0800

EF operation and Linq writing record

Project summary: EF operation and Linq writing record 1. Introduction of EF After creating an MVC project, to reference the EF framework, follow these steps: 1), add project in Models 2) select Entity Data Model and fill in the name again 3) after selecting code first, select the connected database and tables, and then generate them. At th ...

Posted by Zyxist on Tue, 05 Nov 2019 10:35:31 -0800

oracle's advanced use [5] stored procedure, stored function and package

Stored procedures are used to perform specific operations and complete certain functions. They can have input parameters in and output parameters out. Store functions are used to return specific results. Use the return clause at the head of the function, specify the type of return, and use the return clause in the execution part to ...

Posted by alconebay on Tue, 05 Nov 2019 10:13:20 -0800