Skip to content
CAI
Software that uses CAICheck a score

xkcoding/spring-boot-demo

37.3

Weak · 13 November 2026

16.2k

lines of production code

Java

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a collection of Spring Boot demonstration applications designed to showcase various enterprise integration patterns and middleware capabilities. It provides concrete examples for asynchronous processing, caching, workflow management, and distributed services, alongside integrations with databases, message queues, and monitoring tools. The repository also includes utilities for code generation, reporting, and aspect-oriented logging, serving as a practical reference for implementing these technologies in a Spring Boot environment.

Features

Add Spring Boot AOP demo for request logging

The demo-log-aop module was added to demonstrate how to use AOP (Aspect-Oriented Programming) to log request details. The implementation includes an AOP aspect that captures and logs request parameters, HTTP headers (including User-Agent for browser and OS detection), IP address, URL, execution time, and method signatures. The demo also provides a test controller with GET and POST endpoints to showcase the logging behavior.

demo-log-aop · high confidence

Add Spring Boot Pay Demo Application

A new Spring Boot application named 'demo-pay' has been added to the repository. This includes the main application class, a basic test class, configuration for the server port and context path, and standard IDE/IDEA/NetBeans ignore rules. The application is configured to run on port 8080 with the context path '/demo'.

demo-pay · high confidence

Add Spring Boot demo for UReport2 integration

A new demo module, demo-ureport2, has been added to demonstrate how to integrate the UReport2 reporting engine with a Spring Boot application. This includes the application entry point, a configuration for an internal datasource, application configuration, a SQL script to initialize the database, and a pre-configured XML report template that allows users to generate complex Chinese-style reports via a web-based designer.

demo-ureport2 · high confidence

Add demo modules for Activiti, Actuator, Admin, Async, Cache, Codegen, Docker, Dubbo, Dynamic DataSource, Elasticsearch, Email, Exception Handling, Flyway, Graylog, Helloworld, HTTPS, LDAP, Log AOP, MongoDB, Kafka, RabbitMQ, and RocketMQ

This change introduces a large number of new Spring Boot demo modules, each with its own \pom.xml\ defining dependencies and build configuration. Specifically, it adds support for workflow (Activiti), monitoring (Actuator), administration (Spring Boot Admin), asynchronous processing, caching (Ehcache, Redis), code generation, Docker integration, distributed services (Dubbo), dynamic data sources, Elasticsearch, email, exception handling, database migrations (Flyway), logging (Graylog), basic web apps, HTTPS, LDAP, AOP logging, MongoDB, and various message queues (Kafka, RabbitMQ, RocketMQ).

(dependencies) · high confidence

Added demo modules for Spring Boot async tasks, Ehcache, Redis, and datejs localization

Introduced new demo projects for Spring Boot asynchronous task execution, Ehcache-based caching, and Redis-based caching, each including configuration files, service implementations, and corresponding unit tests. Additionally, added a Chinese (zh-CN) localization file for the datejs library in the codegen demo.

(repo-wide) · high confidence

Added static assets: axios library and Ionicons font

The demo-codegen module now includes the axios v0.18.0 library and the Ionicons SVG font, making these resources available for client-side use within the application.

(repo-wide) · high confidence

New demo applications for Actuator, Admin, Codegen, and Activiti

Added four new demo applications to the repository: a Spring Boot Actuator demo for monitoring endpoints, a Spring Boot Admin server and client setup for centralized monitoring, a code generation tool using Velocity templates and MyBatis-Plus, and an Activiti workflow demo with in-memory security configuration. Each includes the necessary Java classes, configuration files, and tests to demonstrate specific Spring Boot capabilities.

(repo-wide) · high confidence

Removals

Removed Spring Boot demo application and configuration

The Spring Boot demo application (SpringBootDemoHelloworldApplication.java) and its configuration file (application.yml) have been removed from the project. This eliminates the /hello endpoint and associated configuration properties, effectively removing this specific demo module from the codebase.

spring-boot-demo-helloworld · high confidence

Behavioural changes

Removed legacy MyBatis demo configuration and schema

The Spring Boot MyBatis demo application has removed its previous configuration files and database schema. Specifically, the \application.yml\ containing Druid datasource and monitoring settings, as well as the \schema.sql\ defining the \mybatis\_user\ table and initial records, have been deleted. This change eliminates the hardcoded MySQL connection details and sample data from the demo project.

spring-boot-demo-mybatis · medium confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 38 → 37 (-0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 98 → 98 (+0.0)
  • Architecture 94 → 94 (-0.5)
  • Maturity 76 → 80 (+3.8)
  • Readiness 32 → 31 (-1.7)
  • Security 65 → 74 (+8.8)
  • Domain Modelling 59 → 59 (+0.0)
  • Accessibility 22 → 20 (-2.1)

Resolved (15)

  • High secret: WD-SECRET-0005 (spring-boot-demo-email/src/main/resources/application.yml)
  • High secret: WD-SECRET-0005 (spring-boot-demo-email/src/main/resources/application.yml)
  • Leaked secret: hardcoded-credential (demo-email/src/main/resources/application.yml)
  • Leaked secret: hardcoded-credential (demo-task-quartz/init/dbTables/tables_derby.sql)
  • Leaked secret: hardcoded-credential (demo-task-quartz/init/dbTables/tables_derby.sql)
  • Leaked secret: password-hash-credential (demo-rbac-security/sql/security.sql)
  • Leaked secret: password-hash-credential (demo-rbac-security/sql/security.sql)
  • Leaked secret: private-key-store (demo-https/src/main/resources/server.keystore)
  • Leaked secret: private-key-store (demo-oauth/oauth-authorization-server/src/main/resources/oauth2.jks)
  • Medium CVE: [GHSA redacted] (demo-cache-ehcache/pom.xml)
  • Rotate the exposed credentials — git history can't be un-committed
  • Secret: generic-api-key (spring-boot-demo-oauth/src/main/resources/application.yml)
  • Secret: generic-api-key (spring-boot-demo-oauth/src/main/resources/application.yml)
  • Secret: generic-api-key (spring-boot-demo-oauth/src/main/resources/application.yml)
  • Secret: generic-api-key (spring-boot-demo-oauth/src/main/resources/application.yml)

New (13)

  • Edited copies of one member (3 members, 8+ corresponding lines) (demo-task-quartz/src/main/java/com/xkcoding/task/quartz/controller/JobController.java)
  • Edited copies of one member (4 members, 8+ corresponding lines) (demo-task-xxl-job/src/main/java/com/xkcoding/task/xxl/job/controller/ManualOperateController.java)
  • Edited copy of a member (11 corresponding lines) (demo-email/src/main/java/com/xkcoding/email/service/impl/MailServiceImpl.java)
  • Edited copy of a member (13 corresponding lines) (demo-websocket-socketio/src/main/java/com/xkcoding/websocket/socketio/handler/MessageEventHandler.java)
  • Edited copy of a member (14 corresponding lines) (demo-rbac-security/src/main/java/com/xkcoding/rbac/security/util/ResponseUtil.java)
  • Edited copy of a member (16 corresponding lines) (demo-email/src/main/java/com/xkcoding/email/service/impl/MailServiceImpl.java)
  • Edited copy of a member (20 corresponding lines) (demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java)
  • Edited copy of a member (7 corresponding lines) (demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java)
  • Edited copy of a member (8 corresponding lines) (demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java)
  • High CVE: [GHSA redacted] (demo-cache-ehcache/pom.xml)
  • Outdated (compile): org.unbescape:unbescape
  • Password hash committed to the repository (demo-rbac-security/sql/security.sql)
  • Password hash committed to the repository (demo-rbac-security/sql/security.sql)

Architecture

  • Unchanged — 0 containers · 7 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

xkcoding/spring-boot-demo was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 87a142f9604c1a5365b4d24d22c2c11c26a9d5ab — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.