Backend Development 6 min read

Unlock Seamless JFinal + Spring Boot Integration with mica-activerecord

This article introduces mica, a micro‑service component suite that simplifies JFinal ActiveRecord usage within Spring Boot projects, outlines its version matrix, highlights recent updates, and details key modules such as mica‑activerecord and mica‑logging for Loki support.

Java Architecture Diary
Java Architecture Diary
Java Architecture Diary
Unlock Seamless JFinal + Spring Boot Integration with mica-activerecord

1. Introduction

As a long‑time JFinal user, many friends mix JFinal with Spring Boot, mainly to leverage JFinal ActiveRecord. To ease this, the mica‑activerecord module was added to the mica ecosystem for smoother integration and troubleshooting.

2. What is mica?

mica

is a collection of micro‑service components that aims to be plug‑and‑play, reducing setup friction and common pitfalls. It currently offers over 40 components, many of which are already interoperable.

mica overview
mica overview

3. Version Information

Latest version 2.5.1 – mica 2.5.x, Spring Boot 2.5.x, Spring Cloud 2020

Version 2.4.7 – mica 2.4.x, Spring Boot 2.4.x, Spring Cloud 2020

Version 2.1.1‑GA – mica 2.0.x~2.1.x, Spring Boot 2.2.x~2.3.x, Spring Cloud Hoxton

Note: mica does not enforce a Spring Cloud dependency; all components except mica‑jobs can be used in a plain Spring Boot project.

4. Update Log

v2.5.1

✨ Overall code optimization to reduce Codacy issues.

✨ mica‑http optimized with custom Logger support.

✨ Added mica‑activerecord module.

✨ mica‑core improved DisableValidationTrustManager for easier use.

✨ mica‑redis now allows custom RedisTemplate.

✨ mica‑logging Loki sender default values optimized based on dependencies.

🐛 Fixed mica‑redis RedisTemplate initialization.

📝 Updated README.md with new documentation links.

⬆️ Upgraded to Spring Cloud 2020.0.3.

⬆️ Upgraded Spring Boot to 2.5.1.

v2.4.7

✨ Overall code optimization to reduce Codacy issues.

✨ mica‑http optimized with custom Logger support.

✨ Added mica‑activerecord module.

✨ mica‑core improved DisableValidationTrustManager for easier use.

✨ mica‑redis now allows custom RedisTemplate.

✨ mica‑logging Loki sender default values optimized based on dependencies.

🐛 Fixed mica‑redis RedisTemplate initialization.

📝 Updated README.md with new documentation links.

⬆️ Upgraded to Spring Cloud 2020.0.3.

⬆️ Upgraded Spring Boot to 2.4.7.

5. Key Highlights

5.1 Adding mica‑activerecord Module

The module extends JFinal ActiveRecord for convenient use in Spring Boot, offering features such as:

@TableName annotation for automatic Model‑to‑Table mapping.

Jackson handling for Record objects.

Executable SQL printing based on Druid.

DruidSqlDialect for pagination optimization across multiple databases.

@Tx annotation support for JFinal ActiveRecord transactions.

Customizable ActiveRecordPluginCustomizer bean.

ModelUtil for Model/Record ↔ Bean conversion.

CodeGenerator that produces markdown‑formatted data dictionaries.

5.2 mica‑logging Loki Support

mica‑logging Loki support
mica‑logging Loki support

6. mica Ecosystem

mica-auto (Spring Boot starter): https://gitee.com/596392912/mica-auto

mica-weixin (JFinal Weixin Spring Boot starter): https://gitee.com/596392912/mica-weixin

mica-mqtt (MQTT component based on t‑io): https://gitee.com/596392912/mica-mqtt

Spring Cloud HTTP/2 (h2c) solution: https://gitee.com/596392912/spring-cloud-java11

mica-security (mica permission system, Vue rewrite in progress): https://gitee.com/596392912/mica-security

7. Documentation

mica source code on Gitee: https://gitee.com/596392912/mica

mica source code on GitHub: https://github.com/lets-mica

Official docs (website): http://wiki.dreamlu.net

Docs on Yuque (follow for updates): https://www.yuque.com/dreamlu

JavamicroservicesSpring BootactiverecordJFinalMica
Java Architecture Diary
Written by

Java Architecture Diary

Committed to sharing original, high‑quality technical articles; no fluff or promotional content.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.