Introduce mybatis-plus to report an Invalid bound statement error. Move your finger to change one place

error Mybatis-Plus (MP) is an enhancement tool for mybatis. On the basis of mybatis, only enhancements are made without changes, which simplifies the development efficiency.This is to help us encapsulate some simple curd methods that can be called directly without rewriting these simple sql statements, just like JPA. A new project was created t ...

Added by zenix on Thu, 28 May 2020 06:02:40 +0300

Super simple way to create your own slide menu

Then you can click the menu to change the icon. For example, click happy, and the homepage will become a smiling face. The implementation process is super simple Step 1: you need to use two new controls: ToolBar and DrawableLayout First, I need to write three xml layout files. The layout file here is embedded w ...

Added by runelore on Tue, 26 May 2020 18:18:27 +0300

JAVAWEB Day 6 sax parsing xml

1. Parse xml using sax - sax mode can not add or delete, only query operation Print out the entire document and execute the parse method. The first parameter is the path to the xml, and the second parameter is the parser.With respect to parsers, you need to create a class, inherit the event resolution class, and override the methods in it. ...

Added by neogranas on Mon, 25 May 2020 19:59:42 +0300

ORM component ELinq - Fluent API for mapping configuration

  Part I This paper introduces the ELinq mapping configuration mode based on Attribute. This paper will introduce the mapping configuration mode based on fluent API. This article still takes the customers table and Orders table of Northwind database as an example. Customers and Orders are one to many relationships. 1. Entity classes of cust ...

Added by Karve on Sun, 24 May 2020 19:10:17 +0300

Detailed explanation of Spring IoC createBean method

preface This article mainly analyzes the flow of the createBean() method of Spring IoC and the bean life cycle. Here is a general flow chart: text AbstractAutowireCapableBeanFactory#createBean @Override protected Object createBean(String beanName, RootBeanDefinition mbd, @Nullable Object[] args) throws BeanCreationException { if ( ...

Added by skippence on Fri, 22 May 2020 13:27:50 +0300

Series 13 dockerAsp.netCore deployment

1. Introduction This full introductionAsp.netHow the core web api is deployed in a docker container and accesses web api services externally.After you have finished writing the dockerfile, you can create a mirror with the docker [image] build command. The basic format is: docker build [options] path | url | - The command reads the dickerfile ...

Added by Velausanakha on Thu, 21 May 2020 05:13:18 +0300

Applicant Ali, byte beating, Spring IOC and factory mode that Meituan must master

Spring IOC and Factory Mode PS: The content of this article is hard core, which requires a better understanding of java's object-oriented, reflection, class loader, generics, properties, XML and other basic knowledge. (1) Brief introduction Before talking about Spring IOC, it's necessary to talk about Factory Pattern.Factory mode separates the ...

Added by edkellett on Fri, 08 May 2020 20:56:05 +0300

The loading of resources in Spring is the same thing!

1. Introduction In JDK, java.net.URL is applicable to the classes that load resources, but the implementation classes of URL access network resources, and there is no way to obtain files and ServletContext from class path or relative path, Although the new handler can be implemented by customizing the extended URL interface, it is very complex. ...

Added by isam4m on Thu, 07 May 2020 16:15:51 +0300

HDFS - operation and maintenance

1, Add node Operating system configuration: ① host name, network, firewall, ssh configuration ssh-keygen -t rsa At the same time, the auth*-keys file of ssh of any node in the cluster can be distributed to the latest node Add the domain name mapping of this node in the / etc/hosts file of all nodes Copy the configuration file of namenode to ...

Added by Rayman3.tk on Wed, 06 May 2020 02:22:05 +0300

Popular understanding of spring source code -- parsing and registering bean definitions

Popular understanding of spring source code (5) -- parsing and registering bean definitions Last section talked about how to get document. After converting the document to document, the next extraction and registration bean is our play. protected int doLoadBeanDefinitions(InputSource inputSource, Resource resource) throws Bea ...

Added by TEENFRONT on Wed, 06 May 2020 00:53:03 +0300