Common interview questions of Mybatis in SSM framework series

ย 19. ย 19. One to one and one to many association queries? ย  ย  <mapper namespace="com.lcb.mapping.userMapper"> <!--association One to one association query --> <select id="getClass" parameterType="int" resultMap="ClassesResultMap"> select * from class c,teacher t where c.teacher_id=t.t_id ...

Posted by bertfour on Sat, 29 Jan 2022 01:03:13 +0100

Analysis of leetcode problem solving ideas 693 - 699 questions

Alternate bit binary number Given a positive integer, check whether its binary representation always alternates 0 and 1: in other words, the numbers of adjacent two digits in the binary representation will never be the same. Get data by bit and XOR class Solution { public: bool hasAlternatingBits(int n) { int a = n & 1; ...

Posted by a1amattyj on Fri, 28 Jan 2022 07:21:04 +0100

Pointer to various applications [real interview questions of large factories]

Analysis of various applications of pointer and real interview questions of large factories preface Most of the pointers learned by beginners or ordinary colleges and universities are simple, that is, we understand that the pointer is an address. We can operate the address content through dereference operation, which is often limited ...

Posted by rharter on Wed, 26 Jan 2022 18:34:39 +0100

Front end performance optimization - using content distribution network CDN

Why use CDN When more and more components are introduced, use the app packaged by webpack JS file is easy to become too large, which is very unfriendly to the first screen loading. The JS code using the third-party resources of CDN will no longer be packaged into the JS package of local services. Reduce the volume of local JS package and imp ...

Posted by Anyaer on Wed, 26 Jan 2022 06:58:02 +0100

Jvav concurrent programming

Review the basic content of threads Program: static code installed on the hard disk. Process: the running program is the space unit of memory allocated by the operating system. Thread: it is the smallest execution unit in the process and the scheduling unit of cpu. Threads depend on the process. Create thread Thread class inherits threadClas ...

Posted by Anco on Wed, 26 Jan 2022 00:46:43 +0100

Talk about java annotations

The essence of annotation When talking about the essence of annotation, the simplest way is to decompile. See the essence. The code is as follows: import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface Foo{ String[] value(); boolean bar(); } Use the ...

Posted by aldernon on Tue, 25 Jan 2022 16:58:51 +0100

High paid programmer & interview question series 59 what is half search? Talk about the code implementation of binary search method

I Interview questions and analysis 1. Today's interview question What search and insert algorithms do you know? What is half search? Talk about the code implementation of binary search method 2. Topic analysis Today's topic is mainly to investigate our mastery of commonly used algorithms in development, especially search algorithms ...

Posted by dark_destroyer on Sun, 23 Jan 2022 12:35:14 +0100

SpringBoot's automatic assembly principle - it's really as simple as you think~

๐Ÿ“‘ Content of this article: SpringBoot two brush automatic assembly principle - in fact, it is really as simple as you think~ ๐Ÿ“˜ Article column: Principle and project development of SpringBoot microservice ๐ŸŽฌ Last updated: January 22, 2022 SpringBoot two brush automatic assembly principle - in fact, it's really as simple as you think~ ๐Ÿ™Š Perso ...

Posted by Grimloch on Sun, 23 Jan 2022 10:57:21 +0100

JavaScript key and difficult point parsing 5 (advanced object, browser kernel and event loop model (js asynchronous mechanism))

Object advanced Object creation mode Object constructor mode First create an empty Object object, and then dynamically add properties / methods var p = new Object() p = {} p.name = 'Tom' p.age = 12 p.setName = function (name) { this.name = name } console.log(p.name, p.age) p.setName('Bob') console.log(p.name, p.ag ...

Posted by goodluck4287 on Sat, 22 Jan 2022 23:40:36 +0100

Audio and video learning C language introduction

preface Now it is more and more difficult for Android junior and intermediate development engineers to find a satisfactory job. Of course, those with strength do not worry about a good job. If you happen to be a junior and intermediate engineer who wants to advance the direction of audio and video or is interested in NDK technology, you must b ...

Posted by MissiCoola on Sat, 22 Jan 2022 22:41:10 +0100