Create the first Spring application
Development tool preparation
Development tool: idea2017 up Dependency management: Maven 3 or above JDK: above 1.8
Creating a Spring project using Maven
Select MavenCheck Create from archetypeSelect Maven archetype QuickStart
Created successfully
Creating a Spring project using Java Enterprise
Default Version generally selects Java ...
Posted by stonelord on Tue, 23 Nov 2021 16:33:03 -0800
kubernetes deploying persistent jenkins
kubernetes deploying persistent jenkins System environment: System version: CentOS 8.1 k8s version: v1.21.3 Containerd version: ctr containerd.io 1.4.3 jenkins version: 2.172
1, Set storage directory Persist Jenkins to storage. NFS network storage is used here to facilitate consistent escape data of application startup nodes in Kubernetes envi ...
Posted by tekcap on Tue, 23 Nov 2021 16:24:35 -0800
Getting started with SpringBoot version of SpringSecurity
SpringSecurity
Safety should be considered at the beginningFunction permissions, access permissions and menu permissions all require certain rules to configure security rules
Remember several classes:
WebSecurityConfigurerAdapter: custom Security policyAuthenticationManagerBuilder: custom authentication policy@Enable WebSecurity: enable WebS ...
Posted by TWD on Tue, 23 Nov 2021 16:04:11 -0800
Tars | Part 4 Subset routing rule service analysis and source code exploration
preface
Through the mid-term report and exchange meeting, the author has a deep understanding of Subset business process; At the same time, I also have an understanding of some misunderstandings in the early stage. This article is to update Subset business analysis and correct misunderstandings.
1. Subset is not load balancing
Bri ...
Posted by rajatr on Tue, 23 Nov 2021 15:58:34 -0800
An HTTPS to HTTP Bug. They endured it for 2 years. They forgive me for being unable to accept it. They changed overtime
Today's article tells you a story and process of tracking down bugs. I have always believed that if something goes wrong, there must be demons, and so is the Bug in the program.
I hope that through this Bug troubleshooting story, we can not only learn a series of knowledge points, but also learn how to solve problems and how to do things more ...
Posted by evanesq on Tue, 23 Nov 2021 15:30:15 -0800
Notes on spring MVC
Important notes about spring MVC are in the following Baidu network disk connection. Welcome to learn together Link: https://pan.baidu.com/s/1E1V37apnF7TiFEnUSn82Tg Extraction code: ee3z
Here are some easily forgotten points in my learning process to make another record for follow-up review
Step 1: create maven project
Step 2: set the packag ...
Posted by rockintyler on Tue, 23 Nov 2021 14:08:09 -0800
With so many groups of wechat and QQ, how should we manage the friend relationship?
This article is excerpted from "design patterns should be learned this way"
1. Application scenario of intermediary mode
In real life, the existence of intermediaries is indispensable. Without intermediaries, we can't communicate with distant friends. Each colleague object will reference each other. If each object interacts with mult ...
Posted by roliver on Tue, 23 Nov 2021 13:54:13 -0800
Single case mode summary
Singleton mode
Singleton Pattern is a creation pattern. It involves a single class that is responsible for creating its own objects and ensuring that only one object is created. This class provides a unique way to access objects, which can be accessed directly without instantiating the objects of this class.
Attention
A singleton class can c ...
Posted by herrin on Tue, 23 Nov 2021 11:28:05 -0800
IOC container in Spring
1, IOC container
IOC underlying principle
Concept and principle of IOC
1. What is IOC?
(1) Control inversion, and leave the object creation and calling process between objects to Spring for management
(2) Purpose of using IOC: to reduce coupling
2.IOC underlying principle
(1) xml parsing, factory schema, reflection
IOC operation
The ...
Posted by b-real on Tue, 23 Nov 2021 11:08:46 -0800
Java Experiment 3: Inheritance and polymorphism
1, Height and weight problems of different nationalities
Write a program to simulate that Chinese and Americans are human; Beijingers are Chinese. In addition to the main class, there are four classes in the program: People, ChinaPeople, American People and Beijing People. The requirements are as follows: (1) The People class has protected ...
Posted by Bizzle on Tue, 23 Nov 2021 10:42:09 -0800