This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Spring Boot 3.1.5 application with Java 17 that provides a dynamic menu system with tree structure. The application uses Microsoft SQL Server 2019 database with MyBatis Plus for data access and serves REST APIs for menu management.
mvn clean package
mvn spring-boot:run
mvn test
mvn clean package -DskipTests
Use the provided startup script:
```bash
src/main/startup.bat
java -jar -Dspring.datasource.url="jdbc:sqlserver://HOST:PORT;databaseName=DATABASE;encrypt=true;trustServerCertificate=true" -Dspring.datasource.username=USERNAME -Dspring.datasource.password=PASSWORD simple.jar
```
Note: Both encrypt=true and encrypt=false work with trustServerCertificate=true. The startup.bat uses encrypt=true.
com.gs.simple - Root packagecommon/ - Shared utilities (DatabaseConfig, ResultDto)controller/ - REST controllersdomain/ - Entity classes (MesSimplesimple, TreeView, Children)mapper/ - MyBatis mappers for database accessservice/ - Business logic layer with implementationSimpleController (controller/SimpleController.java:16-35)
- Main REST controller with CORS enabled
- Endpoints: /simple/getTree (POST) and /simple/list (POST)
MesSimpleService (service/MesSimpleService.java:15-23)
- Core business logic for menu operations
- Methods: getTree(), toTree(), getMenuList()
TreeView Domain (domain/TreeView.java:13-24)
- Represents hierarchical menu structure with id, title, field, spread, and children
MES_SIMPLE_CREATE_TABLE.sql to create the required database tablesrc/main/resources/mapper/jdbc-type-for-null: 'null')