maysuns.ukJava · Spring Boot · MyBatis

Java product service demo

A Spring Boot 4 + MyBatis + H2 product-service, really running on this site's server. The list below is fetched live from /api/products when you open the page.

Loading...
This is a tech demo, not a store. There is no payment, no buy button and no download. The real products are at shop.maysuns.uk; names and prices here are copied from there only to show a Java microservice reading product data. A price of 0 means the item is free in the shop.
Browserfetch /api/products nginxHTTPS + allow-list Spring Boot 4+ MyBatis H2 DBin-memory
🔒 Build this from zero + interview Q&A13 build steps and 18 interview questions (sign-in required, email code)

Try the API yourself

Open these in a new tab (read-only):

GET /api/healthGET /api/productsGET /api/products/git-github-guide

What this demo shows

⚙️Backend: Spring Boot 4.1 + MyBatis (both XML mapping and annotation styles), H2 in-memory database. On start-up schema.sql creates the tables and demo-data.sql loads the products.
🧩Microservices: the full design splits into a product service and an order service (separate databases, never reading each other's tables). Only the product service is online here; the order service needs more memory and is not deployed.
🔒Only /api/products and /api/health are public. Internal endpoints /internal/* are blocked at nginx.

Next: order service, user service (login via auth.maysuns.uk), payment service. Reference project: mall-swarm (Apache-2.0, for learning only).