

web front-end project integrates both JSP and FreeMaker_u_Multi-view Parser Configuration
*In 2017, at the request of the company, responsible for research and development of intelligent analysis platform, using OLAP technology to analyze tax data from multiple dimensions, levels and cross-business domains, discover data characteristics, summarize tax laws, and support leadership decision-making. After nearly a year, it was finally sorted out version 1.0. Now it is slightly summarized what was used in the whole development...

web front-end project integrates both JSP and FreeMaker_u_Multi-view Parser Configuration
*In 2017, at the request of the company, responsible for research and development of intelligent analysis platform, using OLAP technology to analyze tax data from multiple dimensions, levels and cross-business domains,...
mybatis Series IV: Dynamic SQL
Dynamic SQL is a powerful feature of MyBatis.When using JDBC to manipulate data, concatenating conditions into SQL strings can be painful if there are too many query conditions. The usual solution is to write a lot of if-else conditional statements and strings to concatenate, and make sure you don't forget spaces or omit commas at the end of fields.MyBatis uses a powerful dynamic SQL language to improve this situation. Dynamic SQL...


Two implementation methods of java Dynamic agent
Last article we wrote about static agents Agent mode of design mode [1] static agent Let's talk about java's dynamic proxy today. 1, Why use dynamic proxy In fact, the dynamic agent makes up for the shortcomings of the static agent. The static agent needs to write a proxy class for each proxy object, which requires a lot of redundant code. The dynamic agent only needs to write a proxy class, which can proxy multiple different objects...



Beauty of Mybatis source code: 2.11. Initialize global configuration through settings configuration
Initialize global configuration through settings configuration When it comes to initializing the global Configuration of Mybatis through settings, it is difficult for us to bypass the Configuration object of...

Beauty of Mybatis source code: 2.12. Parse the 'environments' element to complete the multi environment configuration in' Mybatis'
Parsing environment elements to complete multi environment configuration in Mybatis After finishing the tedious process of configuring the Configuration object based on settings, it's time to parse the environments tab...


Beauty of Mybatis source code: 2.13. Parse the databaseIdProvider element and configure the database type unique flag generator
Parse the databaseIdProvider element and configure the database type unique flag generator An interface named DatabaseIdProvider is defined in mybatis. The function of this interface is to obtain the unique flag of...

Beauty of Mybatis source code: 2.6. Analyze the typeAliases element to complete the registration of type aliases
Resolve the typeAliases element to complete the registration of type aliases > Click to see the usage of the typeAliases element The typeAliases element is used to complete the configuration of type alias mapping in...

Beauty of mybatis source code: 2.8. Parse the objectFactory element and configure the object creation factory of mybatis
Parse the objectFactory element and configure the object creation factory of mybatis In Mybatis, there are many operations to instantiate objects through reflection, such as converting JDBC operation results to specific...

Beauty of mybatis source code: 2.7. Analyze the plugins element to complete the configuration of mybatis plug-in
Parse the plugins element to complete the configuration of mybatis plug-in > Click to see the usage of the typeAliases element The plug-in mechanism of Mybtis is a very powerful function, which allows us to cut into...


Spring Boot 2.x basic tutorial: MyBatis multi data source configuration
Two days ago, we introduced Multi data source configuration of JdbcTemplate as well as Multi data source configuration of Spring Data JPA , let's talk about how to configure the multi data source scenario when using MyBatis. Add configuration for multiple data sources First, in the configuration file of Spring Boot application.properties Set two database configurations you want to link, such...