# SpringBootTest **Repository Path**: ZhangTurtle/spring-boot-test ## Basic Information - **Project Name**: SpringBootTest - **Description**: SpringBoot的基础脚手架搭建,用于项目测试验证 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-25 - **Last Updated**: 2025-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringBootTest #### 介绍 SpringBoot的基础脚手架搭建,用于项目测试验证 是一个完整的使用DockerFile文件打包基础镜像,然后设置对应的启动脚本进行docker容器的创建启动 ### 文档目录结构 ```properties java.com.turtle -annotation -Init:自定义注解 -config -Knife4jConfig:Swagger的增强配置信息 -SwaggerConfig:Swagger配置信息 -controller -http.HttpController:http请求的GET/POST请求参数接收形式 -login.LoginController:无实际意义,对外提供的登录测试接口 -swagger.SwaggerControllerV2:使用Swagger2.0的注解实现 -swagger.SwaggerControllerV3:使用Swagger3.0的注解实现(推荐还是使用2.0的注解) -test.TestController:测试(无实际意义) -entity -RequestParam:对照Swagger的实体类,不添加对应的文档注解 -StudentEntityV2:使用Swagger2.0注解标注的实体类 -StudentEntityV3:使用Swagger3.0注解标注的实体类 -User:配合自定义注解@Init使用 -enum -service -impl.LoginServiceImpl:登录Controller的Service层 -utils -expr:表达式计算模块 -GsonUtils:Gson的工具类封装 -Md5Utils:Md5的加密算法实现 -SM3Utils:SM3的加密算法实现 -UserFactory:对@Init注解的使用 resources -application.yml:配置文件 -------------------------------------- test.com.turtle -annnotaion.UserFactoryTest:测试使用@Init注解的使用 -service.ExprUtilsTest:测试表达式模块 ``` ### 1.Knife4j+Swagger文档框架 ### 2.expr(表达式计算框架) ### 3.引入注解学习 ### 4.对标签值进行加工 MappingRuleLoader|JsonFieldMapperService|MappingRule|api_mapping_copy.properties