Dynamic SQL Techniques in MyBatis

Understandign Dynamic SQL in MyBatis When building real-world applications, SQL statements often need to adapt based on varying conditions. For instance, during user registration, some fields may be required while others are optional. This variability makes static SQL insufficient, which is where MyBatis dynamic SQL becomes invaluable. This gui ...

Posted on Sun, 18 Oct 2026 16:12:59 +0000 by stephenalistoun

SpringBoot Fundamentals: Core Concepts and Integrations

SpringBoot Fundamentals Getting Started with SpringBoot Project Initialization SpringBoot simplifies the setup of Spring applications by providing an auto-configuration approach. To create a new SpringBoot project: Use Spring Initializr to generate a project structure Select appropriate dependencies (Spring Web for web applications) Configure ...

Posted on Sat, 17 Oct 2026 16:39:53 +0000 by virva

Understanding MyBatis: Configuration, Mapper Files, and Advanced Features

MyBatis is a persistence framework designed to simplify database operations within the Data Access Object (DAO) layer. It addresses issues such as repetitive resource connection management, query result mapping, and SQL hardcoding by decoupling SQL statements from Java code. SQL statements are defined in separate XML files known as SQL Mapper f ...

Posted on Sat, 17 Oct 2026 16:34:40 +0000 by hank__22

MyBatis Framework: Core Concepts and Implementation

What is MyBatis? MyBatis is a semi-ORM (Object-Relational Mapping) framework that encapsulates JDBC internally. When using MyBatis, developers only need to focus on SQL statements themselves, without spending effort on handling complex processes like loading drivers, creating connections, and creating statements. Programmers write native SQL di ...

Posted on Fri, 16 Oct 2026 16:55:05 +0000 by greensweater

MyBatis Persistence Framework with Mapper Interface and Maven Integration

MyBatis Persistence Framework with Mapper Interface and Maven Integration Understanding MyBatis MyBatis is a powerful persistence framework designed to simplify JDBC development. It operates within the three-tier architecture model: Presentation Layer (UI) Business Layer (Logic) Persistence Layer (Database Operations) The framework ...

Posted on Fri, 16 Oct 2026 16:50:47 +0000 by digitallookout

MyBatis Initialization Flow: From Configuration Loading to SqlSession Creation

Before executing SQL operations, MyBatis requires initialization: loading configuration resources, parsing them into an internal representation, and finally producing a SqlSession instance. This process involves three key stages: Obtaining a configuration InputStream via Resources.getResourceAsStream() Building a SqlSessionFactory using SqlSes ...

Posted on Fri, 16 Oct 2026 16:32:12 +0000 by router

Introduction to JSP, EL, JSTL, and the MVC Three-Tier Architecture with a CRUD Case Study

Overview of JavaServer Pages JSP (JavaServer Pages) is a technology that allows embedding Java code within HTML pages to generate dynamic web content on the server side. Basic Structure: <html> <head> <title>Demo</title> </head> <body> <h1>JSP Greeting</h1> < ...

Posted on Fri, 16 Oct 2026 16:21:30 +0000 by dumbass

Resolving Database Column and Java Property Name Discrepancies in MyBatis

In Object-Relational Mapping (ORM) development, a frequent challenge arises when the column names in the database schema do not match the field names in the Java entity classes. MyBatis provides flexible mechanisms to handle this mismatch. This guide explores two primary strategies: utilizing SQL aliases during query execution and defining expl ...

Posted on Thu, 15 Oct 2026 16:44:45 +0000 by datona

Custom Type Handlers and Pagination Plugins in MyBatis

Type handlers in MyBatis bridge the gap between JDBC types and Java objects during parameter binding and result mapping. While MyBatis providse built-in handlers for common types, custom handlers enable precise control over serialization and deserialization logic—especially useful when persisting non-standard representations (e.g., storing Date ...

Posted on Wed, 14 Oct 2026 16:24:05 +0000 by natbrazil

Java EE Enterprise Application Development - Querying Product Categories with Source Code

Create database tables and insert data into cateogry and product tables USE mybatis; CREATE table product( id INT PRIMARY KEY AUTO_INCREMENT, goodsname VARCHAR(32), price DOUBLE, typeid int(32) ); INSERT INTO product VALUES('1','电视机','5000','1'); INSERT INTO product VALUES('2','冰箱','4000','2'); INSERT INTO product VALUES('3',' ...

Posted on Wed, 14 Oct 2026 16:17:59 +0000 by Gary Kambic