Power node spring framework learning notes - King crane spring integration MyBatis
3, spring integrates MyBatis
Official download address
Power node spring data
Video viewing address
https://www.bilibili.com/video/BV1nz4y1d7uy
Integrating MyBatis with Spring mainly solves the problem of handing over SqlSessionFactory objects to Spring for management
You only need to register the SqlSessionFactoryBean, the object gener ...
Posted by dusty on Fri, 14 Jan 2022 10:14:03 +0100
day06 object oriented 03
day06 inherits features and abstract classes
Object oriented knowledge
Definition: the behavior of the same object shows different effects at different times or conditions
Conditions for polymorphism:
inheritMethod coverageA parent class reference points to a child class object
eg:
cat cat = new Persian cat();
Access characteristics of ...
Posted by tawevolution on Fri, 14 Jan 2022 09:05:52 +0100
[SpringCloud] service registration - Eureka cluster environment construction + consumer side registration + provider side registration
The relationship between the three is shown in the figure:
Note: 7001 + 7002 is Eurake service cluster; 80 is the summer end of the service caller; 8001 + 8002 is the service provider. Eureka service clusters should register and watch each other when registering.
(1) Eureka service cluster environment construction and registration
Find the ...
Posted by dv_evan on Fri, 14 Jan 2022 01:59:14 +0100
Java learning notes 18 - Reflection
What is reflection?
java reflection mechanism is to know all the properties and methods of any class in the running state; For any object, you can call any of its methods and properties; This kind of dynamically acquired information and the function of dynamically calling object methods are called the reflection mechanism of java language (the ...
Posted by lutzlutz896 on Fri, 14 Jan 2022 00:32:16 +0100
Learning Java generics
Although I have written Java code for some time, I still can't figure it out and give up selectively as long as I see generics. However, I found that generics are used in many places when looking at the code of the company leaders today, so I'll sort out the generics I understand today.
What is generics
generic programming is a style or pa ...
Posted by kjtocool on Thu, 13 Jan 2022 21:28:22 +0100
java exception handling
Chapter VI: exception handling one
1. Overview of anomalies one
1.1 introduction of abnormality one
1.2 concept of abnormality two
2. Anomaly classification three
2.1 abnormal system three
2.2 Throwable......................................................................................................................... 3
2.3 error fou ...
Posted by PW on Thu, 13 Jan 2022 16:43:42 +0100
[12] Java basics exercise
Weight loss plan (if)
Demand: enter the number of weeks and display the corresponding activities Monday: running Tuesday: swimming Wednesday: jogging Thursday: sleep Friday: walk Saturday: cycling Sunday: Travel
Code demonstration
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Syste ...
Posted by marcs910 on Thu, 13 Jan 2022 15:25:11 +0100
Day09 learning java (object-oriented, relationship between classes, design patterns)
object-oriented
1. Relationship between classes
1.1 succession
Using extensions, there is single inheritance between classes, multiple inheritance between interfaces, and multiple inheritance are separated by commas
1.2 realization
class A{
}
//Single inheritance between classes
class B extends A{
}
interface C{
}
interface D{
}
//Multiple ...
Posted by The Stranger on Thu, 13 Jan 2022 14:18:15 +0100
JAVA learning notes (Chapter 5 interface and inheritance)
1, What is an interface
An interface is like a template. There are methods without content in the interface. If a class uses an interface, it must declare the methods in the interface. Let's continue to take LOL games as an example:
Some heroes of LOL can use physical attack, some can use magic attack, and some can use both attacks. Therefore ...
Posted by jrschwartz on Thu, 13 Jan 2022 14:00:17 +0100
Generators in python
1 Introduction to generator
Building in Python iterator You must implement a class with iter() and next() methods to track the internal state and raise StopIteration when there is no return value.
The Python generator is an easy way to create iterators.
Simply put, a generator is a function that returns an object (iterator) that can be iter ...
Posted by jon2396 on Thu, 13 Jan 2022 12:59:38 +0100