9,000-word long text takes you through the SpringBoot startup process--the most detailed SpringBoot startup process in history--full of graphics and text

The interviewer's soul from deep inside asked, "Tell me about the springboot startup process"; Stuffy-faced interviewer: "It simplifies the configuration of spring, mainly because of the auto-assembly feature and it can be started directly because it has a tomcat container embedded in it"; Interviewer:'Well, yes, this is s ...

Posted by apenster on Sun, 30 Jan 2022 01:33:17 +0100

Spring Cache + Redis implements caching

Spring Boot cache Several important concepts & cache annotation CacheCache interface, which defines cache operations. Implementations include RedisCache, EhCacheCache, ConcurrentMapCache, etcCacheManagerThe Cache manager manages various Cache components@CacheableIt is mainly for method configuration, and the results can be cached accordin ...

Posted by chriskiely on Sun, 30 Jan 2022 01:04:37 +0100

Automatic configuration of source code analysis

automatic assembly According to the jar package dependency we added, some configuration class bean s will be automatically registered into the ioc container. We can use @ autowired or @ resource annotations where necessary Question: how is Spring Boot automatically configured and which components are automatically configured? We know that th ...

Posted by abigbluewhale on Sat, 29 Jan 2022 18:00:54 +0100

linux installs docker and implements idea to encrypt connections using certificates

1. Environmental preparation1 Alibaba cloud servercentos7.9docker latest version2. Installation steps of dockerSet up warehouseInstall the required packages. Yum utils provides Yum config manager, and the device mapper storage driver requires device mapper persistent data and lvm2.sudo yum install -y yum-utils device-mapper-persistent-data lvm2 ...

Posted by the182guy on Sat, 29 Jan 2022 09:21:34 +0100

spring data connection pool optimization

Use jedis2 There may be a problem with the small partners of the connection pool of 9.1. After the program runs with high concurrency for a period of time, the error message of Could not get a resource from the pool will appear, and the idle connection idelPool in the redistemplate connection factory viewed after stopping the interface call is ...

Posted by Copyright on Sat, 29 Jan 2022 07:27:41 +0100

[learning package meeting - whole process record of project steps] SpringBoot front and rear end separation - practical project of house rental management system - the next day

1, Implementation of front-end page and bottom data of household head management Link: https://pan.baidu.com/s/1euQPqoZ21h80WjK0TPTogA   Extraction code: 0wb2 This is the static page of the modified part, which can be downloaded and used directly The json file modifies this paragraph to make the link take effect Start backend c ...

Posted by stezz on Sat, 29 Jan 2022 07:13:36 +0100

Spring type application cannot find the main function no main manifest attribute, in / APP Jar, spring boot Maven plugin pot?

Problem phenomenon Error 1 An error is reported after the spring type application is started, no main manifest attribute, in / APP jar Error 2 During the mvn build process, the message "repackage failed" will be prompted Cause analysis In most cases, it is because of the POM in spring application The spring boot Maven plug ...

Posted by syth04 on Sat, 29 Jan 2022 06:58:08 +0100

SpringBoot -- SpringBoot integrates WebSocket to realize simple multi person chat room

Article directory: 1. What is WebSocket? 2. WebSocket API in Java 2.1 relevant annotations and API methods in websocket development 2.2 front end technology support for WebSocket 3. Implementation source code of multi person chat room 3.1 add related dependencies to POM file 2.2 configure the view parser in the core configuration file 2 ...

Posted by cjcdadams on Sat, 29 Jan 2022 05:28:06 +0100

Actual project configuration

application.properties file Configuration dependency: Build project environment: code generator Query function mapper is an interface interface. You need to add a configuration class before it can be managed by springboot Delete function Making a file is the generated entity class entity Pass value ...

Posted by danwatt on Sat, 29 Jan 2022 02:06:13 +0100

Basic summary of spring IOC

  Article catalogue catalogue Article catalogue 1, What is Spring 2, Advantages of Spring framework   3, Detailed explanation of spring IOC mechanism   IOC role summary Detailed explanation of spring IOC mechanism 1, First build maven project and add dependencies 2, Create persistence layer and implementation class 3 ...

Posted by Graxeon on Fri, 28 Jan 2022 16:25:03 +0100