It took a day to fix Springboot + Mybatis
I have written the strategic logic for several months, which is a bit silly. To do database and table splitting, it took almost a day to use the simplest Mybatis in spring boot. The ability to solve macro problems has declined a lot after a long time in logic details.
To use Mybatis in spring boot, you need to do the following steps:
1. use S ...
Posted by shmeeg on Mon, 20 Jan 2020 04:58:40 -0800
Deep understanding of JVM class loading mechanism
Class loading process
A type starts from being loaded into the memory of the virtual machine and ends at being unloaded. Its whole life cycle will go through seven stages: Loading, Verification, Preparation, Resolution, Initialization, Using and Unloading Collectively referred to as Linking, as shown in the figure:
The order of loading, verify ...
Posted by sulin on Mon, 20 Jan 2020 03:17:20 -0800
Learning records of Spring Security authorization and certification
Official Spring Security documentation
Spring Security and Shiro are both security frameworks, which contain a lot of content. This article mainly records the part of authorization and authentication that I understand. I hope it can be expressed as succinctly and completely as possible. Welcome to exchange.
formlogin main process
Among them, t ...
Posted by trrobnett on Mon, 20 Jan 2020 02:40:08 -0800
Quick guide to integrating apollo with spring boot
>At present, there are three popular configuration center frameworks on the market: Spring CLoud Config ,Alibaba Nacos as well as Ctrip apollo , we call on the corresponding architecture group to use Apollo.
Work Flow
Simple explanation:
In the above figure, there are three environments FAT, UAT and PROD, each of which has two sets of Confi ...
Posted by sbinkerd1 on Sun, 19 Jan 2020 18:53:25 -0800
Spring MVC -- data input and output
1, Data in section
1. RequestMapping annotation:
@RequestMapping(value = "Requested URL",params = {"Restrict incoming parameters"},method="Qualify method type",headers="Qualified request header")
2. Path data section:
<a href="method2/100">Test request header</a><br><br> ...
Posted by py343 on Sun, 19 Jan 2020 03:14:35 -0800
Registration and discovery of Pigeon service
Last article: What happened to a call to the server of Pigeon
In the previous section, we introduced the process of the request calling of Pigeon, so how is the service of Pigeon perceived by the caller? We know that RPC usually has a registry to store the information of service testing (ip, port, etc.) ...
Posted by hmiller73 on Sun, 19 Jan 2020 00:59:17 -0800
Use of idea 5 -- create project 2
1. Create WEB project
The community version does not have the function of creating a web project, so it can only create a maven web project. Here, the enterprise version of cracking is used.
1.1 creation steps
File-New-Project
In the pop-up window, select Java Enterprise - project SDK - Java EE ...
Posted by le007 on Sat, 18 Jan 2020 08:10:39 -0800
Fragment upload and breakpoint continue
We may encounter the upload of large files in our work. If we transfer them once, we may encounter various problems such as network and timeout. Here, we will introduce the scheme in two ways: fragment upload and breakpoint continue transfer.
1, Slice upload
Principle of fragment upload: the front end f ...
Posted by joey3002 on Sat, 18 Jan 2020 06:46:06 -0800
Spring cloud Alibaba 4. Using Nacos as the distributed configuration center
1, Description of Nacos distributed configuration center
1. What are the mainstream configuration centers?
1. Spring cloud config. It comes with spring cloud. It is not friendly. There is no background management. You can directly use git/svn to manage files
2. Apollo: too heavy, difficult to deploy ...
Posted by mrodrigues on Sat, 18 Jan 2020 05:31:38 -0800
Spring boot upload and echo pictures
I met this problem last time when I was working on a personal blog project. Now let's write down the solution steps
IDE: IDEA
Language: java
Framework: spring boot
Template engine: thymeleaf
1, See the effect1. Picture submission2. Picture display2, Design process
1.pom.xml
<dependency>
<g ...
Posted by mailjol on Sat, 18 Jan 2020 05:19:44 -0800