Tagged articles
XML configuration
14 articles · Page 1 of 1
This tutorial walks through configuring MyBatis with XML for database operations, covering Maven dependencies, project structure, core configuration files, mapper interfaces, dynamic SQL, and JUnit testing with a complete employee CRUD example.
CRUDJDBCJUnit testing
0 likes · 20 min read

This article explains the operation of the Spring IoC container, the DIP principle, dependency injection, XML bean definitions, custom and static factories, FactoryBean usage, bean scopes (singleton and prototype), and demonstrates their behavior with Java code examples.
Bean ScopeFactoryBeanSpring
0 likes · 6 min read

This article explains how Spring configures its parent and child application contexts using web.xml, ContextLoaderListener, and DispatcherServlet, detailing the loading of configuration files, context class determination, bean definition processing, and the refresh cycle that ultimately stores the WebApplicationContext in the ServletContext.
ContextLoaderListenerDispatcherServletJava
0 likes · 12 min read


JavaEdgeFeb 12, 2021 · Backend Development
This article provides a comprehensive overview of Ehcache, covering its core components, data‑flow mechanisms, XML configuration options, persistence behavior, and key features such as multi‑level storage, monitoring interfaces, and cache‑manager scalability for Java applications.
Cache ManagementEhcacheJava
0 likes · 7 min read

The author recounts attempting to upgrade from Log4j to Log4j2 due to lack of asynchronous support, discovers that Log4j2 does not accept properties files, switches to XML configuration, and eventually realizes asynchronous logging may not be necessary, illustrated with a screenshot.
BackendLog4j2XML configuration
0 likes · 1 min read

This tutorial walks you through converting a Spring Boot MyBatis integration from annotation‑based configuration to XML‑based mapper files, covering scanner setup, interface definition, XML mapper creation, property configuration, and a unit test to verify database read/write operations.
XML configurationbackend-developmentspring-boot
0 likes · 5 min read

This tutorial explains DBLE's core horizontal sharding mechanism, detailing the purpose of data partitioning for massive tables and walking through the three essential XML configuration files—rule.xml, schema.xml, and server.xml—that define sharding rules, schema mappings, and system parameters.
DBLEHorizontal PartitioningXML configuration
0 likes · 6 min read

This article explains how to implement scheduled tasks in Spring using the lightweight Spring Task framework, covering both XML‑based and annotation‑based configurations, providing complete code examples, cron expression details, and practical tips for Java backend developers.
JavaSpringTask Scheduling
0 likes · 9 min read

This article explains Aspect‑Oriented Programming (AOP) as a complement to OOP, introduces core AOP concepts such as aspects, join points, pointcuts, advice, weaving and introductions, and provides a step‑by‑step Spring XML configuration with Java code examples demonstrating time‑logging and logging aspects, ordering, selective pointcuts, and forced CGLIB proxy usage.
AOPAspect-Oriented ProgrammingCGLIB
0 likes · 14 min read

This article provides a step‑by‑step tutorial on building a Spring container, configuring Spring MVC with DispatcherServlet, setting up essential beans such as multipartResolver, custom handler mapping, handler adapter, view resolver, component scanning, and finally integrating MyBatis with SqlSessionFactoryBean and SqlSessionTemplate for a complete Java backend solution.
JavaMyBatisSpring
0 likes · 10 min read

This article explains how Spring's XML configuration can inject simple values, collections, arrays, maps, Properties, bean references, internal beans, null values, and object‑graph navigation, and it provides concise syntax examples and test code for each case.
BeansSpringXML configuration
0 likes · 20 min read

This article explains how to structure Spring XML configuration files, define bean metadata, use id/name/alias for bean naming, and instantiate beans via constructors, static factory methods, or instance factories, providing detailed code examples and JUnit tests for each approach.
@BeanIoCSpring
0 likes · 12 min read

This article explains the concepts of Spring's IoC container and beans, guides through setting up a development environment, details the required JARs, demonstrates creating a simple Hello World application with interface and implementation, and shows how to configure and retrieve beans using XML configuration.
@BeanIoCSpring
0 likes · 11 min read

This guide explains the main Amoeba configuration files, provides step‑by‑step instructions to set up dbServers.xml and amoeba.xml for proxying a MySQL instance, and details the file structures, access controls, logging, and routing rules needed for successful deployment.
AmoebaDatabase ProxyMySQL
0 likes · 6 min read
