There are many ways to pass parameters in mybatis

1. The first method is to pass parameters in sequence by anonymous parameters controller @ApiOperation(value = "Multiple parameter query_Anonymous sequential parameter transfer") @GetMapping("findByParams") public ResultMsg findByParams(Short gender,String age) { List result= employeeMapper.selectByGenderAndAge(gender,age); return Res ...

Posted on Mon, 20 Sep 2021 14:51:48 -0400 by asy1mpo

First understand the Java language - the difference and relationship between String, StringBuilder and StringBuffer!!! [suggested collection]

After we have learned about inheritance and polymorphism in Java, now we can learn a very important thing: String and StringBuilder and StringBuffer. We started directly!!! Previous articles Preface - how is IDEA configured? Make it easier for you to type code! First knowledge of Java language (I) - basic data types and operators First kn ...

Posted on Mon, 20 Sep 2021 10:57:42 -0400 by kentopolis

Effective Java Chapter 2 creating and destroying objects

1. Replace the constructor with the static factory method //Example public static Boolean valueOf(boolean b){ return b ? Boolean.TRUE : Boolean.FALSE; } This method has five advantages Method has a name. The returned object can be described more accurately than the constructor.You don't have to create a new object every time you call. ...

Posted on Thu, 16 Sep 2021 22:21:05 -0400 by buckboru

Java learning notes_ From zero to full web stack: Web backend Basics

preface JSP feels that the actual development is not very useful. It is no longer recorded here The listener personally feels that it is more appropriate and convenient to do it from the front end, so it will no longer record Pre preparation Intelligent Idea is used for development here. The installation and configuration of Tomcat and M ...

Posted on Sat, 11 Sep 2021 18:15:10 -0400 by srhino

MyBatis source code analysis - Introduction to MyBatis, open your mouth and come

* * [4.1 stay pom.xml Add dependency](about:blank#41_pomxml_276) * [4.2 stay application.yml to configure](about:blank#42_applicationyml_322) * [4.3 mapper file](about:blank#43_mapper_362) * [4.4 Creating user tables and adding user data](about:blank#44__395) * [4.5 Create entity class](about:blank#45__435) ...

Posted on Thu, 09 Sep 2021 19:42:05 -0400 by mrfritz379

Introduction to Spring framework, linux learning video

IoC – reverse of control, which reverses the creation right of the object to Spring!! Using IOC can solve the problem of high program coupling!! Control reversal Suppose I need to do a function. In this function, I need to call the service layer, and then call the dao layer to get the data. In traditional Java EE development, ...

Posted on Thu, 09 Sep 2021 16:05:39 -0400 by huzefahusain

HashMap source code analysis, there are 8 reasons for JVM memory overflow

this.loadFactor = loadFactor; //Returns the power of 2 this.threshold = tableSizeFor(initialCapacity); } Copy code For the above constructor, we need to pay attention to`this.threshold = tableSizeFor(initialCapacity);`This way threshold To the power of 2, not`capacity * load factor`,Of course, this is not a mistake, because at this ti ...

Posted on Thu, 09 Sep 2021 15:44:48 -0400 by ubersmuck

Mybatis learning record

Mybatis related catalogue prefaceCommon persistence layer technologiesMybatis start First Mybatis DemoUsing Mapper interfaceConfiguring Sql statements with annotations Mybatis global profile structurePropertiesSettingsTypealiasesTypehandlers*Objectfactory (object factory)PluginsEnvironments environmenttransactionManagerdatasourceda ...

Posted on Wed, 08 Sep 2021 17:09:59 -0400 by DJP1986

Java foundation - byte stream of IO stream, read through 888 pages of Java King level core classic in three months

* Byte stream reads and writes one byte array at a time to copy pictures and videos FileInputStream fis = new FileInputStream("So Young.mp3"); FileOutputStream fos = new FileOutputStream("copy.mp3"); int len; byte\[\] arr = new byte\[1024 \* 8\]; //Custom byte array while((len = fis.read(arr)) != -1) { ...

Posted on Tue, 07 Sep 2021 23:38:31 -0400 by Xo_

[source code analysis and design mode 2, 40 pictures and texts, I don't believe you can't understand concurrent programming

4. Specific products It implements the interface defined by the abstract product role, which is created by the specific factory. It has a many-to-one relationship with the specific factory. 3, Advantages and disadvantages 1. Advantages The multi-level products associated in the product family can be managed together within the class, ins ...

Posted on Mon, 06 Sep 2021 22:27:26 -0400 by shorty114