Mybatis learning record

Introduction to Mybatis MyBatis is an excellent persistence layer framework, which supports custom SQL, stored procedures and advanced mapping. MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can configure and map primitive types, interfaces and Java POJO s (Plain Old Java Object ...

Posted by aquayle on Fri, 10 Dec 2021 16:02:34 +0100

[untitled] annotation and reflection

Annotation and reflection Annotation annotation effect It is not the procedure itself, which can be explainedIt can be read by other programs (such as compiler, etc.) Format of annotation The annotation exists in the code as "@ annotation name", and some parameter values can be added Where is annotation used? It can be atta ...

Posted by hhheng on Fri, 10 Dec 2021 11:45:19 +0100

Servlet learning phase II

HttpServletRequest class What is the role of the HttpServletRequest class Every time a Request enters the Tomcat server, the Tomcat server parses and encapsulates the requested HTTP protocol information into the Request object. Then it is passed to the service methods (doGet and doPost) for us to use. We can get the information of all request ...

Posted by railanc4309 on Thu, 09 Dec 2021 17:37:00 +0100

Java object oriented (inner class)

summary If the interior of a thing contains another thing, then this is that a class contains another class. For example, the relationship between the body and the heart. Another example: the relationship between automobile and engine. Classification: 1. Member internal class 2. Local inner classes (including anonymous inner classes) Definit ...

Posted by VanPEP on Sat, 04 Dec 2021 05:08:53 +0100

Introduction to multithreading

1, Concept 1. Concurrency and parallelism Parallel: multiple tasks are executed simultaneously at the same time point. efficientConcurrency: multiple tasks are executed at the same time. Low efficiency, macro simultaneous execution, micro time-sharing execution. 2. Process and thread Process: the running application in memory, whic ...

Posted by cavedave on Mon, 29 Nov 2021 14:33:44 +0100

jsp connecting database in idea

Software version used this time: IDEA: 2019.1.3 Professional Edition mysql: mysql 8.0.16 jdk: 17.0.1 tomcat: tomcat 9.0 JDBC version: 8.0.16 Preliminary preparation: 1. Put the JDBC driver in the lib folder of tomcat 2. Build a database in mysql, mine is "mydata", and then execute the following two pieces of code. CREATE TA ...

Posted by cheshil on Mon, 22 Nov 2021 19:58:32 +0100

Mybatis -9.28 learning notes - pre stage optimization

Mybatis -9.28 learning notes - pre stage optimization In the first two stages, we learned how to 1. Create a project and 2. Use the add, delete, modify and query commands of the database in the Mybatis framework. This small chapter is mainly an optimization scheme to solve some problems that we may encounter in the first two chapters and some ...

Posted by riginosz on Fri, 19 Nov 2021 10:08:30 +0100

[Dockerfile in root directory] IDEA integrates docker. When packaging, the image is automatically built and pushed to the remote docker server

Write in front IDEA integrates docker. Port 2375 of docker needs to be opened Docker opens 2375 port to realize remote access: https://blog.csdn.net/single_0910/article/details/121201709 environment Linux Environmental Science: Ubuntu18.04 LTS IDEA Version: 2019.3.5 Install Docker plug-in slightly IDEA 2019 Version and above, installed ...

Posted by stuffradio on Tue, 09 Nov 2021 02:39:50 +0100

Solution of output garbled code in IntelliJ IDEA

Recently, tomcat suddenly output garbled code on the console. All kinds of garbled code problems were solved by consulting a lot of data IDEA console output garbled code Problem 1: the tomcat console in idea outputs garbled code Run the local tomcat\bin\start.bat file, and the page displays normally Display garbled code in idea   Ad ...

Posted by ctjansen on Mon, 08 Nov 2021 12:28:30 +0100

Modification of plant vs zombie with Java (Continued)

Modification of plant vs zombie with Java (Continued) Previously used HxD Hex Editor The tool successfully modified the game archive, For specific steps, please refer to: https://blog.csdn.net/weixin_50669669/article/details/120984999, This article will use java Code replacement tool to achieve the same modification function. 1, Foreword A ...

Posted by TheFreak on Sat, 30 Oct 2021 21:28:52 +0200