PageHelper Paging Plug-in

Article directory 1. Introduction of PageHelper Paging Plug-in 2. Use steps of PageHelper 3. Use of Page Objects 4. Use of PageInfo Objects 5. PageInfo source code 1. Introduction of PageHelper Paging Plug-in (1) PageHelper is a very convenient third-party paging plug-in in MyBatis (2) Official ...

Posted on Mon, 30 Sep 2019 12:39:52 -0700 by Dark57

A simple MyBatis project

log4j.properties, we set it to debug level for debugging. The production environment can be set as INFO. This project is placed under src: # Global logging configuration log4j.rootLogger=DEBUG, stdout # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appe ...

Posted on Mon, 30 Sep 2019 09:51:19 -0700 by evilgenius

File upload for Spring MVC

Summary File upload is a common feature in Java Web projects. It does not achieve the purpose of uploading files. The following steps are required: 1. The method property of the form must be set to POST. 2. The enctype property of the form must be set to multipart/form-data (the browser will use binary streaming to process the form data). 3. Ad ...

Posted on Sat, 28 Sep 2019 20:47:42 -0700 by revdev

SpringBoot application integrates ELK for log collection

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract ELK, Elasticsearch, Logstash, Kibana, can be combined to set up an online logging system. This paper mainly describes the use of ELK to collect the logs generated by SpringBoot applications. What you need to know before learning Developer Essent ...

Posted on Thu, 26 Sep 2019 19:28:23 -0700 by aaaaCHoooo

Spring Framework Learning Notes-AOP for Aspect-Oriented Programming

introduce concept AOP is different from OOP. AOP is not a replacement for OOP, but a supplement to OOP. AOP enhances OOP. Suppose we have several business codes that call a method. According to the idea of OOP, we encapsulate this method in a class and then call it by object. method name. We can think of our business code as being invaded by ot ...

Posted on Wed, 25 Sep 2019 07:40:41 -0700 by mjgdunne

Spring Mvc exception handling

Spring Mvc exception handling Why do we need uniform exception handling? Without unified processing, the data returned to the front end can be very messy. Without unified processing, the controller layer will have to write a lot of try catch code. If you do uniform exception handling, debug will be ...

Posted on Wed, 25 Sep 2019 04:42:04 -0700 by Chief

Spring Framework Learning Notes: Controlled Inversion IOC and Dependency Injection DI

The main function of the Spring framework is to provide a container with which objects can be created and managed. For example, Dao class, etc., or a class with multiple dependencies (Student class contains member variables of Teacher class) Spring has two core concepts: IOC (Inverse of Control) and AOP (Aspect Oriented Program). Spring framew ...

Posted on Tue, 24 Sep 2019 06:48:21 -0700 by Loki88

A Preliminary Study on the Advancement of Reptiles

Article directory scrapy introduction Components of scrapy Introduction of scrapy flow chart Introduction to scrapy file scrapy introduction scrapy is an asynchronous processing framework based on Twisted. It is a pure Python crawler framework with clear architecture and modules. The coupling de ...

Posted on Tue, 24 Sep 2019 03:04:59 -0700 by Copernicus

Mybatis Level 1 and Level 2 Cache Implementation Principles and Guidelines

Mybatis, like Hibernate, supports Level 1 and Level 2 caching. First-level cache refers to the Session-level cache, that is, if the same SQL statement is executed multiple times in a session and the parameters are the same, the subsequent queries will not be sent to the database and will be retrieved directly from the Session cache. Secondary c ...

Posted on Mon, 23 Sep 2019 21:02:25 -0700 by larissahn

XML Profile Description

1.DTD(Documnet Type Definition) DTD, the definition of document type, is an XML constraint schema language. It is a validation mechanism of XML files and belongs to a part of the composition of XML files.A DTD document contains: defining rules for elements, defining rules for relationships between elements, attributes that elements can use, e ...

Posted on Mon, 23 Sep 2019 02:20:40 -0700 by grlayouts