Mybatis integrated spring of mybatis learning 12 (Continued)

1. Will Mybatis reverse engineering of mybatis learning 11 Copy the com.pp.maper and com.pp.pojo files generated in to spring_ Under the src/main/java file of mybatis 2. Spring_ The mapper point in the applicationContext.xml file in mybatis is changed to com.pp.mapper point to the mapper abstract class under the java file <?xml version="1. ...

Posted by GreyBoy on Sat, 25 Sep 2021 16:54:50 -0700

2021-09-26 Spring5 declarative transaction control

Spring 5 declarative transaction control 1. Programming transaction control related objects 1.1 PlatformTransactionManager The PlatformTransactionManager interface is the transaction manager of spring, which provides our common methods of operating transactions. methodexplainTransactionStatus getTransaction(TransactionDefination definat ...

Posted by awared on Sat, 25 Sep 2021 14:15:51 -0700

SpringBoot AutoConfiguration Principle

Official SpringBoot Documentation There are a lot of configurations, and we can't remember them all 1. Find Configuration Directory 1. Enter the Startup Class at @SpringBootApplication 2. Enter @EnableAutoConfiguration under this comment 3. AutoConfigurationImportSelector class imported into @Import({AutoConfigurationImportSelector.class}) ...

Posted by kylebud on Sat, 25 Sep 2021 09:11:20 -0700

Spring MVC learning summary

0. Introduction         This article is used to record my spring MVC learning content and some of my understanding. The reference materials are from the following:        Crazy God says Java -- spring MVC        Common methods of fastjson_ authority39 blog - CSDN blog_ Common methods of fastjson         ...

Posted by expertis on Fri, 24 Sep 2021 08:53:24 -0700

Spring MVC exception handling mechanism,

First, exception handling belongs to the spring MVC module, not the spring core. Having this awareness can help us better understand the spring framework. There are two spring MVC unified exception handling mechanisms. The first is to implement the HandlerExceptionResolver interface. The second is to add @ ControllerAdvice annotation on the exc ...

Posted by phencesgirl on Fri, 24 Sep 2021 07:01:12 -0700

Iv-08 practice of uploading micro service files

Project introduction Business description File upload based on Spring Cloud Alibaba solution Initial architecture design The front end and back end are separated, and the service design is based on the spring cloud alibaba solution Initial architecture design, subsequent addition of Gateway project and authentication project Project crea ...

Posted by alexz on Fri, 24 Sep 2021 05:03:29 -0700

(35) spring cloud of java Spring Cloud+Spring boot+mybatis enterprise rapid development architecture - using Zuul to realize fault tolerance fallback function

Zuul's main function is forwarding. In the forwarding process, we can't guarantee that the forwarded service is available. At this time, fault tolerance mechanism and fallback mechanism are needed. Recommended distributed architecture source code  fault tolerance Fault tolerance simply means that when a service is unavailable, it can switch t ...

Posted by jbradley04 on Fri, 24 Sep 2021 03:16:15 -0700

[Spring Boot] Spring Boot Tomcat connection pool usage example

This page will introduce an example of Spring Boot Tomcat JDBC connection pool. Tomcat connection pool supports high concurrency environment with high performance. Tomcat connection pooling is very simple because its implementation is very simple. Tomcat connection pool has the ability to configure custom interceptors to better handle id ...

Posted by AP81 on Fri, 24 Sep 2021 02:07:40 -0700

[Spring Boot] Spring Boot Listener | Servlet listener

This page will introduce an example of the Spring Boot listener. We can register Servlet listeners in Spring Boot using ServletListenerRegistrationBean or @ Component or @ ServletComponentScan. The ServletListenerRegistrationBean class registers the Servlet listener as a Spring Bean. @The ServletComponentScan annotation scans servlet lis ...

Posted by The Midnighter on Fri, 24 Sep 2021 00:44:56 -0700

How does SpringBoot copy objects? Old birds play like this!

Hello, I'm misty. Today, we bring the fourth article of the old bird series of SpringBoot to talk about how to gracefully implement object replication in daily development. First, let's see why object replication is needed? Why do I need object replication As mentioned above, it is the most common three-tier MVC architecture model in our ...

Posted by amma on Wed, 22 Sep 2021 22:53:43 -0700